Building iOS applications using xcodebuild without codesign

后端 未结 4 1559
执笔经年
执笔经年 2020-12-02 07:12

We\'re building an app for another company. They hold the signing key and would rather not share it with us.

It should be possible to separate build and sign, but h

4条回答
  •  日久生厌
    2020-12-02 07:39

    Unfortunately it can be hard to build your app in release mode without code signing. You will get errors from the build system such as this:

    CodeSign error: code signing is required for product type 'Application' in SDK
                    'iOS 5.1'
    

    In this case, you should configure your target to use your developer/team wildcard (*) signing identity in Release mode. The app will be signed with that when you build it, and you can ship it to your customer so they can resign it. This is what most of our outsourced developers do.

    You may then be able to remove the code signing information by deleting the various files in the app like _CodeSignature and using the codesign tool to remove information from the application binary. But I'm not sure how easy that is. It's not really essential though. There isn't any sensitive information in the provisioning profile or signing information.

提交回复
热议问题