Connecting to an Apple service (such as the App Store Connect or the Apple Developer Portal) with the API key requires that you first add your Apple service authentication data on our Apple Services Connection page, then an API key for your app.
Please note that the API key authentication is the recommended way when connecting Bitrise to Apple Services. Please note that you can have 50 API key added to the Apple Services connection page but your project can use only one (selected in the Team tab).
Adding API key authentication data on Bitrise ⚓
- On App Store Connect, generate a new API key with Admin access under Users and Access.
- Log in to bitrise.io.
- Click on your profile in the upper-right corner of your Dashboard and select Profile settings from the dropdown menu.
- On the menu bar select Apple Service Connection.
- Click Add connection.
- Fill out all required fields: provide the Name, Issuer ID, and the Key ID you generated at Step 1., and Upload a Private key (.p8). If one input is missing, the Connect and Upload a Private Key (.p8) buttons won’t be available.
- Click Connect.
- Continue with assigning an Apple Developer Account for your app.
Assigning API key authentication to your app ⚓
When you wish to use a Step with the established connection, you also have to select an app for the connection. This way your app can receive data from your Apple Developer account when your build runs on Bitrise.
- Open your app’s page on bitrise.io.
- Select the Team tab.
- Scroll down to the Apple Service connection section.
- Select the API key authentication (recommended) method for the app to use in the dropdown.
The Step is now able to connect to the App Store Connect or the Apple Developer Portal during your build.
What’s next? ⚓
Check out the Steps that use the official API key authentication.