How to build and sign an iOS app on separate machines?

亡梦爱人 提交于 2019-12-01 17:55:53

Please follow the steps to create an unsigned xcarchive

  1. Set ‘Code Signing Identity’ = ‘Don’t Code Sign’

• Select Targets (‘’) -> Build Settings and find the ‘Signing’ section.

Set ‘Code Signing Identity’ = ‘Don’t Code Sign’

  1. Set Bundle Identifier = ‘’

Set Version = 1.0 //That you need to send

Set Build = 5 //That you need to send

Remove ‘Automatically manage singing’ flag.

  1. Open the terminal and go to the project root folder. Then run the following command.

xcodebuild -workspace <ProjectName>.xcworkspace -scheme <ProjectName> -configuration Release clean archive -archivePath buildArchive/<ProjectName>.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

  1. After successfully completing, it will create a new ‘buildArchive’ folder and inside that a ‘.xcarchive’ file.

You can Zip that ‘.xcarchive’ file and transfer the xcarchive to the signing machine.

We worked on this for several weeks along with other teams in the company. All of us came to the same conclusion, there is no better option than signing with a dev cert and then re-signing each and every binary with the prod cert afterwards. It's not a straight forward process, but that's what we have been left with.

This might work for you I think

  1. Create an unsigned IPA on your build machine.

  2. Have a script in the build machine that transfers the IPA to your signing machine.

  3. Use the FloatSign script on the signing machine to resign the IPA.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!