Skip to main content

Apple App Store Integration

Connect Mobile App Distribution to your App Store Connect account using an API key, then publish iOS builds to App Store Connect directly from Mobile App Distribution.

info

Only Account Owners and Org Admins can configure the Apple App Store integration.

Prerequisites​

  • An App Store Connect account with the role Admin or Account Holder (only these can create API keys)
  • The app(s) you want to publish must already exist in App Store Connect with a known bundle ID
important

Apple allows you to download the .p8 private key only once. Download and securely store the file when you create the API key.

Generate an App Store Connect API Key​

  1. Open App Store Connect → Users and Access → Integrations → App Store Connect API.
  2. Click + to generate a new key. Give it a name (e.g. "Mobile App Distribution Publish") and choose the App Manager role (or higher) so it can upload builds.
  3. Click Generate.
  4. Download the .p8 file immediately. Apple only allows downloading it once.
  5. Note the Key ID shown in the table.
  6. Note the Issuer ID shown at the top of the page (a UUID).

Connecting Mobile App Distribution​

After you have the API key details, add them to Mobile App Distribution.

Step 1: Click the Profile icon in the top-right corner and select Integrations from the user menu.

Apple App Store Integration

Step 2: On the Integrations page, find Apple App Store under Distribution and select Connect. The Apple App Store Integration page opens.

Apple App Store Integration

Step 3: Under Credentials, enter the following information:

Sr. No.FieldDescription
1Issuer IDEnter the UUID associated with your App Store Connect account.
2Key IDEnter the ID of the App Store Connect API key.
3Private Key (.p8)Upload the .p8 private key file that you downloaded when you created the API key.
Apple App Store Integration

Step 4: Click Save. Mobile App Distribution generates a JWT and calls App Store Connect to check the credentials before saving them. If the check fails, nothing is saved. On success, the status shows Connected.

Apple App Store Integration

Connection Statuses​

The Connection Status section shows the current state of the integration.

Sr. No.StatusMeaning
1Not ConfiguredApp Store Connect credentials have not been configured.
2ConnectedThe saved credentials have been successfully verified.
3FailedThe connection test could not verify the credentials. Check the API key details and try again.

Once credentials are saved, you can:

  • Test Connection - re-check the saved credentials against App Store Connect.
  • Update Credentials - replace the Issuer ID, Key ID or .p8 file.
  • Remove Configuration - delete the stored credentials.

Security​

  • The .p8 private key is encrypted at rest using libsodium.
  • The key is never displayed or downloadable from the UI after upload.
  • JWTs signed for App Store Connect API expire after 20 minutes (Apple's max).
  • All credential changes are recorded in the Audit Log.

Troubleshooting​

ErrorFix
Invalid .p8 file: missing PEM headerMake sure you uploaded the .p8 file Apple gave you, not a converted/re-encoded version.
Authentication failed: Apple rejected the credentialsCheck that the Issuer ID, Key ID, and .p8 file all belong to the same key. They are shown together on the App Store Connect API Keys page.
Authorization failed: this API key does not have permissionPromote the key's role to App Manager or higher in App Store Connect.
Network error contacting App Store ConnectOutbound HTTPS to api.appstoreconnect.apple.com must be allowed. Check firewall / egress rules.

Publish a Build​

Once the credentials are saved, Account Owners and Org Admins can publish an iOS build to App Store Connect:

Step 1: Open the app and find the .ipa build you want to publish.

Step 2: Click the ⋯ (more actions) icon on the build's row and select Publish to App Store.

Step 3: Upload the build's AppStoreInfo.plist file and confirm.

Publishing runs in the background. Check the Audit Log for the result.