CONFIGURATION GUIDE
Configuring iOS App Distribution
Now that our deployment pipeline is set up with Codemagic, let's configure your iOS app distribution credentials. We'll connect your Apple Developer account to enable seamless iOS app deployment.
New to Apple Development?
Creating an Apple Developer Account
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
Connecting Apple to Codemagic
Full Video
Let's link your Apple Developer account with Codemagic to enable automated iOS deployments:
- 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
App Store Connect API Key (YOUR_TEAM_NAME)
- We'll generate the required credentials in the next step
Setting Up Your API Keys
Now we'll create the API keys that allow secure communication between services:
- 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 API Key (YOUR_TEAM_NAME)
. 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.
Completing the Codemagic Setup
Return to the Codemagic dashboard with your newly generated credentials:
- 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 will now be able to use your App Store Connect API key to manage your iOS app distribution.
Generating Your Distribution Certificate
Full Video
When it comes to iOS app distribution, we need to generate a distribution certificate. This certificate is a way for Apple to verify the identity of the 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 has the ability to generate the certificate for you. Let's do it:
- 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_TEAM_NAME)
- For the certificate type, select Apple Distribution
- Select the App Store Connect API key you just created
- 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.