Skip to content

Commit

Permalink
Update "Creating an App Store API key for Codemagic" sections (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser authored Feb 23, 2024
1 parent 82320d1 commit 01b8451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
12 changes: 1 addition & 11 deletions content/flutter-code-signing/ios-code-signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,7 @@ The following sections describe how to set up automatic code signing for builds

### Step 1. Creating an App Store API key for Codemagic

Only App Store Connect admin can create an API key. It is recommended to create a dedicated App Store Connect API key for Codemagic in [App Store Connect](https://appstoreconnect.apple.com/access/api). To do so:

1. Log in to App Store Connect and navigate to **Users and Access > Keys**.
2. Click on the + sign to generate a new API key.
3. Enter the name for the key and select an access level. We recommend choosing `App Manager`, considering that `Developer` does not have the required permissions to upload to the store. Read more about Apple Developer Program role permissions [here](https://help.apple.com/app-store-connect/#/deve5f9a89d7).
4. Click **Generate**.
5. As soon as the key is generated, you can see it added to the list of active keys. Click **Download API Key** to save the private key for later. Note that the key can only be downloaded once.

{{<notebox >}}
**Note:** Take note of the **Issuer ID** above the table of active keys as well as the **Key ID** of the generated key as these will be required when setting up the Apple Developer Portal integration in Codemagic UI.
{{</notebox>}}
{{< include "/partials/app-store-connect-api-key.md">}}

### Step 2. Connecting the Apple Developer Portal integration for your team/account

Expand Down
12 changes: 1 addition & 11 deletions content/flutter-code-signing/macos-code-signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,7 @@ You may revoke an existing certificate to allow Codemagic to create a new one us

### Step 1. Creating an App Store API key for Codemagic

It is recommended to create a dedicated App Store Connect API key for Codemagic in [App Store Connect](https://appstoreconnect.apple.com/access/api). To do so:

1. Log in to App Store Connect and navigate to **Users and Access > Keys**.
2. Click on the + sign to generate a new API key.
3. Enter the name for the key and select an access level. We recommend choosing either `Developer` or `App Manager`, read more about Apple Developer Program role permissions [here](https://help.apple.com/app-store-connect/#/deve5f9a89d7).
4. Click **Generate**.
5. As soon as the key is generated, you can see it added to the list of active keys. Click **Download API Key** to save the private key for later. Note that the key can only be downloaded once.

{{<notebox >}}
**Note:** Take note of the **Issuer ID** above the table of active keys as well as the **Key ID** of the generated key as these will be required when setting up the Apple Developer Portal integration in Codemagic UI.
{{</notebox>}}
{{< include "/partials/app-store-connect-api-key.md">}}

### Step 2. Connecting the Apple Developer Portal integration for your team/account

Expand Down
12 changes: 1 addition & 11 deletions content/flutter-publishing/publishing-to-app-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,7 @@ This section gives step-by-step instructions on how to configure publishing to A
**Tip:** You may also reuse any of the keys you've already set up for automatic [iOS](../code-signing/ios-code-signing/#automatic-code-signing) or [macOS](../code-signing/macos-code-signing/#automatic-code-signing) code signing.
{{</notebox>}}

It is recommended to create a dedicated App Store Connect API key for Codemagic in [App Store Connect](https://appstoreconnect.apple.com/access/api). To do so:

1. Log in to App Store Connect and navigate to **Users and Access > Keys**.
2. Click on the + sign to generate a new API key.
3. Enter the name for the key and select an access level. For App Store Connect publishing, the key needs to have `App Manager` permissions. Read more about Apple Developer Program role permissions [here](https://help.apple.com/app-store-connect/#/deve5f9a89d7).
4. Click **Generate**.
5. As soon as the key is generated, you can see it added to the active keys list. Click **Download API Key** to save the private key for later. Note that the key can only be downloaded once.

{{<notebox >}}
**Note:** Take note of the **Issuer ID** above the table of active keys and the **Key ID** of the generated key as these will be required when setting up the Apple Developer Portal integration in Codemagic UI.
{{</notebox>}}
{{< include "/partials/app-store-connect-api-key.md">}}

### Step 2. Connecting the Apple Developer Portal integration for your team/account

Expand Down

0 comments on commit 01b8451

Please sign in to comment.