CONFIGURATION GUIDE
Configuring iOS App Distribution
In this guide, you'll generate two App Store Connect API keys and a distribution certificate. One key will be used by Codemagic to communicate with App Store Connect. And the other key will be used by Codika to be to create bundle ids and manage your apps.
New to Apple Development?
If you don't already have an Apple Developer account, here's how to set one up:
- Visit developer.apple.com/programs/enroll
- Click "Start Your Enrollment"
- Sign in with your Apple ID (create one if needed)
- Choose your entity type:
- Individual / Sole Proprietor
- Company / Organization
- Pay the annual fee ($99)
- Complete identity verification:
- Individual: Provide personal identification
- Organization: Provide D-U-N-S number and legal documentation
App Store Connect API Key for Codemagic
Tutorial Video
Video recording in progress. Available soon.
Generate an API Key
- Sign in to App Store Connect
- Navigate to Users and Access > Integrations > App Store Connect API Keys (Or click here)
- Click the + button to generate a new key
- For the key name, enter
Codemagic (YOUR_CODEMAGICTEAM)
orCodemagic (Personal Account)
if you are using your personal account. - Select App Manager as access level.
- Click Generate and download your API Key file
- Stay on this page as we will need to copy the Issuer ID and Key ID to the Codemagic dashboard.
Add the API Key to Codemagic
- In Codemagic, go to your Team's (or Personal Account's) Integrations section
- Find the Apple Developer Portal section and click Manage keys
- Click Create Key
- Name your key, use the name
Codemagic (YOUR_CODEMAGICTEAM)
orCodemagic (Personal Account)
if you are using your personal account. - Copy/paste the Issuer ID and the Key ID from the App Store Connect website to the Codemagic dashboard
- Drag and drop the API Key file you downloaded earlier to the Codemagic dashboard
- Click Save
Codemagic has now the ability to manage your iOS app distribution by using the App Store Connect API.
App Store Connect API Key for Codika
Tutorial Video
Video recording in progress. Available soon.
Generate an API Key
Follow the steps above to generate an API Key for Codika.
This time name it Codika API Key
.
Add the API Key to Codika
- Run
codika configure app-store
- Provide a name for the key, this name should be descriptive of your Apple Developer Account.
- Paste the Issuer ID and the Key ID from the App Store Connect website
- Copy the content of the
.p8
file by runningcat AuthKey_XXX.p8 | base64 | pbcopy
- Paste the content in the interactive prompt
Codika has now the ability to create bundle ids and manage your apps.
Generating Your Distribution Certificate
Tutorial Video
Video recording in progress. Available soon.
To distribute your app on the App Store, you'll need a distribution certificate. This certificate is a way for Apple to verify the identity of a developer and make sure the app is coming from a trusted source. Think of it as a stamp that you put on your app to prove that you are the one who built it.
Codemagic let's you generate certificates directly in their dashboard. We'll use that method to generate a certificate for your team.
- Open your Codemagic Team settings
- Navigate to Code signing identities
- Open the iOS certificates tab
- Click Generate certificate
- For the reference name for the certificate, enter
Distribution Certificate (YOUR_CODEMAGICTEAM)
orDistribution Certificate (Personal Account)
if you are using your personal account. - For the certificate type, select Apple Distribution
- Select the App Store Connect API key you created in the previous step
- Click Create certificate
The certificate will be automatically registered in your Apple Developer Portal and stored securely in Codemagic for future use.
What's Next?
Perfect! Your Apple Developer account is now linked to Codemagic, enabling automated iOS app distribution. Next, we'll set up your Android deployment credentials.