edit

How to export Certificates and Provisioning Profiles

The Provisioning Profile(s) and Code Signing Identity (.p12 Certificate) are crucial part of the development process. The Provisioning Profile contains application related data, the list of devices that can run the given application, the connected Certificates and many more.

The Code Signing Identity (.p12 Certificate) contains information about the developer and makes it possible to sign the application. Both of these files are needed to build your application, test them on devices or upload them to the AppStore.

Export with codesigndoc

The easiest way to get the required code signing files is to use our codesigndoc tool.

It supports both Xcode and Xamarin projects, and can be installed and run with a single line of command in Terminal: https://github.com/bitrise-tools/codesigndoc#one-liner

Once it's done you'll have all the required files exported. Open your app on bitrise.io, go to the Workflow Editor (click the Workflow tab), and upload these files into the Code signing & Files section (left side of the editor).

That's all!

Make sure you can archive and export on your Mac!

codesigndoc only works if you can archive and export your app from Xcode.app - until you get a signed IPA!

Xcode.app might auto generate files in the background during the export process, and obviously codesigndoc can only collect those files after the files are available on your Mac.

This means that you should first Archive the project in Xcode.app, Export it for the distribution type you want to use (Ad Hoc, App Store or Enterprise), and run codesigndoc after you have the .ipa file generated by Xcode.app. This way codesigndoc can collect all the code signing files required for that type of distribution.

Manually exporting Provisioning Profiles

  1. Visit the Apple Developer Portal - use your AppleID to login.
  2. Once you're signed in, select the Certificates, IDs & Profiles section
  3. Find the Provisioning Profile you need, select it and click download (the file extension is .mobileprovision in case of an iOS Provisioning Profile, and .provisionprofile in case of a macOS application Provisioning Profile)
  4. To upload it to your app on bitrise.io
    • open your app on bitrise.io
    • select the Workflow tab
    • in the Workflow Editor, on the left side, select the Code signing & Files option
    • here you can upload your Provisioning Profiles and your Code Signing Identities (.p12 Certificate)

Manually exporting and uploading the Certificate (.p12 Identity)

To request/create a signing certificate

  1. Request a Certificate from Xcode.app's Accounts section in Preferences, or from the Apple Developer Portal manually.

Download signing certificate from the Apple Developer Portal

  1. Visit the Certificates, IDs & Profiles section of the Apple Developer Portal.
  2. Choose Certificates on the left side
  3. Select the Certificate and click download (the file extension is .cer)
  4. Open the file once the download is finished
  5. This will open the certificate in your Keychain Access.app

Export the certificate (.p12 identity)

  1. Open Keychain Access.app
  2. On the left side, select My Certificates
  3. Right click on the certificate you want to exported
  4. Select "Export .." in the menu

Note: you can select more than one certificate at the same time, then right click and select "Export ..." - this will export all the certificates into a single .p12 file!

To upload the .p12 signing certificate file to your app on bitrise.io:

  • open your app on bitrise.io
  • select the Workflow tab
  • in the Workflow Editor, on the left side, select the Code signing & Files option
  • here you can upload your Provisioning Profiles and your Code Signing Identities (.p12 Certificate)

More information about how iOS code signing works

For more information about how iOS code signing works, please check the iOS/Code Signing page.