Creating a signed IPA for Xcode projects

Note

Overview on iOS code signing in Bitrise

For a comprehensive overview on what Steps are available for code signing asset management, visit the iOS code signing page.

You can easily create a signed IPA file for your Xcode project with Bitrise.

Upload the distribution AND the development signing certificates

We strongly recommend uploading BOTH the development and distribution signing certificates for your project. Without the different types of certificates, you will not be able to generate different types of signed IPA files.

If you’re all set, proceed to setting up IPA export in your Workflow.

  1. Make sure the necessary code signing files have been collected and uploaded.

  2. Make sure you have the Xcode Archive & Export for iOS Step in your Workflow.

  3. Set the Distribution method input of the Step.

    creatingasignedipa.png

    The options are:

    • auto-detect - Please note that this option is deprecated and will be removed. We do not recommend using it.

    • app-store: Choose this if you want to deploy the app to the App Store. Requires a Distribution certificate and an App Store provisioning profile.

    • ad-hoc: Choose this if you want to deploy the app to ad-hoc testers. Requires a Distribution certificate and an Ad Hoc provisioning profile.

    • enterprise: Choose this if you have an Apple Enterprise account and want to use that to distribute your app.

    • development: Choose this for internal testing. Requires a Developer certificate and a Development provisioning profile.

  4. Set the Automatic code signing input to the Apple service connection you want to use for code signing. The available options are:

  5. Save the Workflow, and start a new build.

That’s all. Xcode will automatically select the right signing files based on your project’s Bundle ID and Team ID settings, and the export method you set.

Signing an IPA file with a different team’s code signing file

You might want to sign the IPA file with a different team’s code signing files. For example:

  • If you use your company’s code signing files for internal builds, but your client’s code signing files are used for App Store distribution.

  • If you use Apple ID for automatic code signing and the Apple ID belongs to multiple teams, use The Developer Portal team to use for this export input to specify which team should be used for automatic code signing asset management.

To do so:

  1. Make sure the right code signing files of the new development team are uploaded to Bitrise.

  2. Set the The Developer Portal team to use for this export option as well (in addition to the Distribution method).

  3. Set the Distribution method.