Setting a provisioning profile from within xcodebuild when making iPhone apps

前端 未结 5 1402
广开言路
广开言路 2021-01-29 18:25

I\'m using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to

5条回答
  •  北恋
    北恋 (楼主)
    2021-01-29 19:10

    I realize this is probably a little off OP topic, but this question comes up first when searching for how to get Xcode builds working on Jenkins. Posting some additional information here for posterity. And points. If you found this useful, please give points :)

    Anyway, went several rounds on this one a couple times lately. Found this:

    http://code-dojo.blogspot.co.uk/2012/09/fix-ios-code-signing-issue-when-using.html

    Seems to work. Make sure to:

    1. Setup the Xcode build as a regular OSX user first; get it building your distributable from there, fixing any provisioning profile issues through Xcode;

    2. Get the command line build working using xcodebuild, as a regular OSX user;

    3. Then follow the instructions in the post above to the letter, copying all iOS certs from Login Keychain to System and copying ~/Library/MobileDevice/Provisioning Profiles to the Jenkins user's ~jenkins/Library/MobileDevice/Provisioning Profiles folder.

    The next Jenkins build, using the commands in step 2 above, should work flawlessly.

提交回复
热议问题