xcodebuild

Xcode Build Error Jenkins: Your session has expired. Please log in

对着背影说爱祢 提交于 2019-11-29 11:59:41
问题 I'm trying to build my application using jenkins pipeline using shell command. Below is the command i'm using to build the app. sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos - configuration Debug clean build' Below is the error i'm getting i console. note: Using new build system note: Planning build 2018-10-11 11:19:36.638 xcodebuild[92399:5181481] DVTPortal: Service '' encountered an unexpected result code from the portal (

How to launch iOS Simulator in specific language from command line?

一曲冷凌霜 提交于 2019-11-29 11:11:12
I need to lauch iOS Simulator that uses specific language using command line. So I found that I can use instruments -w <device> and it is working great, I can set specific device. But how can I run simulator with specific language? I've tried adding -AppleLanguages -AppleLocale but there are some warnings: Instruments Usage Error : Specified target process is invalid: -AppleLanguage thanks! To run your app must be installed and located (if not, will open default language) Use this command to run your app with some language xcrun simctl launch <deviceid> <appid> -AppleLanguages "(pt-BR)" Sample

Code Signing Resource Rules Path fails on Jenkins, CODE_SIGN_RESOURCE_RULES_PATH

送分小仙女□ 提交于 2019-11-29 06:59:20
I am little concerned about how people treat the following issue. Basically it sounds like "Build fails on Jenkins with the ResourceRules.plist: cannot read resources " My circumstances are: 1) Jenkins 2) Locally I work in Xcode 7 beta (on a separate branch) 3) My teammates work in 6.4.1 and for them everything works fine 4) Jenkins slave has Xcode 6.4.1 installed Some of you will say "this question was asked millions of times", like here , here , here , here . But the documentation says the following: Resource Rules Systems before OS X Mavericks v10.9 documented a signing feature (--resource

Set xcode “build setting” from terminal?

大城市里の小女人 提交于 2019-11-29 06:48:05
Is there anyway that I can change a setting in xcode without opening xcode? I have an automated xcodebuild / xcrun process going on but I need to change 1 value: Targets > Select your target > Build Settings > Code Signing Resource Rules Path add : $(SDKROOT)/ResourceRules.plist I can't find any file where I might put this line... What You can do is to run: xcodebuild -target <target> -configuration <configuration> -showBuildSettings This command shows all the settings that are filled for target and configuration passed. Find the name of the key that contains $(SDKROOT)/ResourceRules.plist

Best way to install a custom cocoa framework

久未见 提交于 2019-11-29 03:25:42
问题 I have a custom framework that, following the advice in Apple's Framework Programming Guide >> Installing your framework I install in /Library/Frameworks. I do this by adding a Run Script build phase with the following script: cp -R build/Debug/MyFramework.framework /Library/Frameworks In my projects I then link against /Library/Frameworks/MyFramework and import it in my classes like so: #import <MyFramework/MyFramework.h> This works very well, except that I always see the following message

Conditionally build app with different asset catalogs

别说谁变了你拦得住时间么 提交于 2019-11-29 02:33:04
问题 My XCode project is setup in a way that has multiple configurations, allowing me to use the same code base for different variations of my app, but have unique elements in each such as app name, version, bundle identifier, icon, launch screen, etc. I've followed this website in order to do most of the setup: http://appfoundry.be/blog/2014/07/04/Xcode-Env-Configuration/ I also have a config.plist containing various unique settings associated with each XCode configuration that successfully only

xcodebuild: “No applicable devices found.” when exporting archive

烈酒焚心 提交于 2019-11-29 02:26:52
问题 As of Xcode 7†, the xcodebuild export archive step has been giving us errors. Build command xcodebuild -exportArchive -archivePath "path/to/Thing.xcarchive" \ -exportPath "path/to/" \ -exportOptionsPlist path/to/PackageOptions-adhoc.plist yields 2015-10-08 16:28:27.409 xcodebuild[62682:464728] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7ff1a42d23f0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7ff1a72ddd80

Xcodebuild'ing a workspace and setting a custom build path

南楼画角 提交于 2019-11-29 02:11:01
问题 I'm trying to use xcodebuild to build a multi-project project in a workspace. When XCode builds a workspace it automatically places all build artifacts in a common directory in DerivedData so that each project can access it dependencies. If I use this command: xcodebuild -workspace myWorkspace.xcworkspace -schema builtIt -configuration Release Eveything works, but the artifacts are placed in usual derived data directory. I want then to appear in a specific directory which I can access from CI

xcode 7.2 Could not build Objective-C module

风流意气都作罢 提交于 2019-11-29 02:04:32
I have just updated my Xcode to version 7.2. Now I try to build a framework from command line using xcodebuild but have this error .... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6:9: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6: #import <QuartzCore/CABase.h> ^ /Applications/Xcode

install application in iphone device through command line

蹲街弑〆低调 提交于 2019-11-28 21:15:43
I'm using xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity . This command is building my app and i am getting build file (.app) also. But how to install the app in to device from command line. Please help me in this issue. Fruitstrap is no longer maintained, for a more up to date project checkout the fork by PhoneGap called ios-deploy . To install run: npm install -g ios-deploy Here are some examples of how to use it: // deploy and debug your app to a connected device ios-deploy --debug --bundle my