xcodebuild

Xcode 10 archiving fails - only on command line (xcodebuild)

两盒软妹~` 提交于 2020-03-18 03:40:44
问题 I'm having issues with archiving on my CI machine (Jenkins), when running the process manually on the SAME machine but with the Xcode UI, everything works just fine. The error I get is: <unknown>:0: error: cannot have input files with file list ** ARCHIVE FAILED ** The following build commands failed: CompileSwift normal armv7 CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler CompileSwift normal arm64 (4

使用mac进行ios几种命令行打包方式

爱⌒轻易说出口 提交于 2020-03-13 11:06:13
随着ios平台的发展以及发布要求的多样性,测试的需求,自动打包可一定程度上提高效率。 自动打包的方式有如下几种: 一、使用xcodebuild进行打包 参考apple文档: https://developer.apple.com/library/prerelease/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html xcodebuild -project "${TARGET}.xcodeproj" -target ${TARGET} CODE_SIGN_IDENTITY="${IDENTITY}" clean //将project clean下 xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme archive //进行archive,生成xcarchive文件 xcodebuild -exportArchive -exportFormat IPA -archivePath MyMobileApp.xcarchive -exportPath MyMobileApp.ipa -exportProvisioningProfile 'MyMobileApp Distribution Profile' 上述红色背景的命令行

Swift build settings in Xcode to use lower 4.0.3 version instead of 5.0.1 are not enforced

*爱你&永不变心* 提交于 2020-02-19 12:34:08
问题 I'm creating a simple Swift framework in Xcode 10.3 and trying to use a lower Swift 4.0.3 version. I went to the Xcode build settings and switch from 5.0.1 to 4.0.3 and then build the project. I ran otool against resulted framework to make sure it's built using correct Swift version but the libraries included are still from Swift 5.0.1 (corresponds to 1001.0.82 from the output below): otool -l SwiftyHello.framework/SwiftyHello cmd LC_LOAD_DYLIB cmdsize 56 name @rpath/libswiftCore.dylib

xcodebuild commands failed to generate iPA

会有一股神秘感。 提交于 2020-01-24 06:05:15
问题 In xcode 9.2 I'm generating archive using automatic signing, Developer certificate and provisioning profile are generating through xcodebuild commands using -allowProvisioningUpdates key. But when generating iPA through xcodebuild commands with that archive getting below error. Details: Unable to close provisioning ledger entry because not all of its subentries are closed Object: <IDEProvisioningLedgerEntry: 0x7f925ced3840> Method: -closeWithError: Thread: <NSThread: 0x7f925a734df0>{number =

How to specify app id when upload to iTunesConnect using command line

妖精的绣舞 提交于 2020-01-21 03:37:06
问题 Summary I`m trying to automatize my applications upload to iTunesConnect. I have at least 6 apps and all are always "ready to upload". The problem is when I try to upload an app to iTunesConnect using command line, I have the following error message: "warning: There are more that one application pre-configured in iTunesConnect. Only the first will be used.". Questions How can I know what is the first? Is there a way to set the first? Is there a way to specify which app I am trying to submit?

How to specify app id when upload to iTunesConnect using command line

匆匆过客 提交于 2020-01-21 03:37:06
问题 Summary I`m trying to automatize my applications upload to iTunesConnect. I have at least 6 apps and all are always "ready to upload". The problem is when I try to upload an app to iTunesConnect using command line, I have the following error message: "warning: There are more that one application pre-configured in iTunesConnect. Only the first will be used.". Questions How can I know what is the first? Is there a way to set the first? Is there a way to specify which app I am trying to submit?

Build and run an app on simulator using xcodebuild

℡╲_俬逩灬. 提交于 2020-01-21 02:39:11
问题 I have the following goal to achieve: build and run an .app application using xcodebuild and ios-sim . I'm using the following script to build the application. xcrun xcodebuild \ -scheme $XCODE_SCHEME \ -project $XCODE_PROJECT \ -configuration Debug \ -destination generic/platform=iOS \ -derivedDataPath \ build Then for running it, I'm using ios-sim launch MyApp.app/ --devicetypeid "iPhone-6-Plus, 9.1" Each time I receive the following message: Program specified by service does not contain

Calling xcodebuild from Swift command line tool fails

牧云@^-^@ 提交于 2020-01-16 01:11:06
问题 I'm writing simple swift command line tool application that automates some of my iOS Dev work. Everything is working except one thing - calling xcodebuild script. My method looks like this: func runTest(deviceName: String, os: String) { killAllSimulators() let sdk = "iphonesimulator" let destination = "platform=iOS Simulator,name=" + deviceName + ",OS=" + os let arguments = ["-workspace", workspace, "-scheme", scheme, "-sdk", sdk, "-destination", destination, "test"] executor.executeCommand(

xcodebuild pass arguments to application on iOS

会有一股神秘感。 提交于 2020-01-14 02:37:29
问题 Is there a way I can pass variables to my iOS application unit tests via command line and xcodebuild? Use case: I have setup Travis CI and want to pass sensitive data (nobody should see it) to my tests. But my project is 100% open source 回答1: I ended up with this solution: xcodebuild -workspace "..." -scheme "..." -sdk "..." -destination "..." -configuration Release SECRET_ARG1="$SECRET_VALUE1" SECRET_ARG2="$SECRET_VALUE2" build test; Then in test target build settings add these values:

Code signing error running XCodeBuild in Jenkins

被刻印的时光 ゝ 提交于 2020-01-13 03:08:10
问题 [Not a duplicate of similar questions as explained further down] I'm getting a code signing error when running XCodeBuild from within Jenkins but it will build ok from the command line or from within Xcode. Several people have had this problem in the past and the common theme with them is that Jenkins gets run at launch time as the daemon user and thus tries to access the system keychain. The solutions that people have applied are copying credentials to the system keychain or running a