Search code examples
iosxcodebuildcodesign

Building iOS applications using xcodebuild without codesign


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 how do I specify it on xcodebuild's command line?


Solution

  • In order to skip the code signing you can perform a manual build from the console like this:

    xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
    

    Additionally, use the -configuration, -target and -sdk parameters in order to define your build settings.

    Refer to this Stack Overflow answer in order to get a detailed description on how to disable code-signing inside Xcode.