Generate xcarchive into a specific folder from the command line

后端 未结 7 765
南旧
南旧 2020-11-28 23:58

For the purposes of CI, I need to be able to generate an XCARCHIVE and an IPA file in our nightly build. The IPA is for our testers, to be signed with our ad-hoc keys, and t

7条回答
  •  有刺的猬
    2020-11-29 00:17

    Xcode 5 now supports an -archivePath option:

    xcodebuild -scheme myscheme archive -archivePath /path/to/AppName.xcarchive
    

    You can also now export a signed IPA from the archive you just built:

    xcodebuild -exportArchive -exportFormat IPA -exportProvisioningProfile my_profile_name -archivePath /path/to/AppName.xcarchive -exportPath /path/to/AppName.ipa
    

提交回复
热议问题