GitHub

Managing iOS code signing files - automatic provisioning

Manage your code signing files on bitrise.io. You can use iOS automatic provisioning to automatically download or generate the required provisioning profiles for your project.

With automatic provisioning, the iOS Auto Provision Step will manage the Provisioning Profiles. You only have to upload the .p12 certificate files manually to bitrise.io.

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.

Before you start

Before setting up automatic provisioning in your workflow, make sure that:

iOS Auto Provision

Automatic provisioning with the iOS Auto Provision Step is not supported for Xamarin apps!

Once you are ready, proceed to uploading your files and setting up your workflow.

Configuring iOS auto provisioning

  1. Open your app on your Dashboard.
  2. Select the Workflow Editor tab.
  3. Select the Code Signing tab.
  4. Make sure you have the .p12 certificate files uploaded. If not, add the .p12 files in the Add the private key (.p12) for signing field. Make sure you upload the correct certificate type: for example, to release your app to the App Store, you need a Distribution certificate.

    Uploading certificates and Provisioning Profiles For a MacOS app, the provisioning profile file extension is .provisionprofile; for an iOS app, the file extension is .mobileprovision.

  5. Make sure that you do NOT have the Certificate and profile installer Step in your Workflow.

    There is no need to have both and it might cause unforeseen issues.

  6. Add the iOS Auto Provision Step to your app’s Workflow. You can check it on the Workflow tab of the Workflow Editor.

    Please note that this step must come AFTER any dependency installer Step in your Workflow, such as Run CocoaPods install or Carthage. Make sure that you do NOT modify your Xcode project between the iOS Auto Provision and the Xcode Archive & Export for iOS Steps. For example, do not change the bundle ID after the iOS Auto Provision Step.

    iOS Auto Provisioning in your workflow

  7. Fill the required inputs of the step.

Optionally, you can set one more input if you use the Automatically manage signing option in Xcode: if the input marked with Should the step try to generate Provisioning Profiles even if Xcode managed signing is enabled in the Xcode project? is set to true then the Step will try to generate a profile. If you use manual code signing in Xcode, this input has no effect.

If codesigndoc does not pick up one or more distribution .p12 files, you can export those manually from the Keychain Access app, just like you would when you transfer these files between Macs.