If you build iOS apps for clients, the Apple Developer account usually belongs to the client, not to you. This guide walks through what you need from them, which parts appship can handle, and how to keep each client's keys separate and out of git.
Signing and uploading are two separate jobs
Releasing an iOS app means two different things, and each one needs different material:
| Job | What it needs | Who issues it |
|---|---|---|
Signing the app (a valid .ipa) | An Apple Distribution certificate with its private key (.p12) and an App Store provisioning profile (.mobileprovision) | The Account Holder or an Admin, in the Developer Portal |
| Uploading to App Store Connect (build, metadata, submit) | An App Store Connect API key (.p8), or a manual upload with Transporter or Xcode | Team key: Account Holder or Admin. Individual key: you |
An API key cannot sign an app, and a certificate cannot upload one.
appship does not build or sign the app itself. Around signing it does three things: it checks your signing files with appship doctor, it installs the certificate and profiles with appship signing import, and it passes the signing setup to your build command through an ExportOptions.plist file exposed as $APPSHIP_EXPORT_OPTIONS.
Which case are you in?
The full walkthrough is in the integration guide. In short:
- The client gives you signing files and a team API key. Sign with the files (
ios.signing), upload with their key. - The client gives you signing files but no API key. Sign with the files, then create an individual API key for yourself in App Store Connect under Users and Access → Integrations → App Store Connect API → Individual Keys. An individual key has no Issuer ID and carries your role's permissions. Uploading a build needs a role with enough access, such as App Manager or Developer; Marketing is not enough. An Admin can switch individual keys off for your role; if you don't see the tab, ask the client.
- No API key at all. You can still sign and build from files. Upload the
.ipawith Transporter or Xcode Organizer, or hand it to the client to upload, and do metadata and submission on the App Store Connect website.appship checklistwrites out the text to paste. appship does not upload with an Apple ID (it needs an interactive 2FA login), soupload,metadata,submitandstatusare unavailable here. - The client only gives you an API key. You still need a certificate and profile. Ask the client or an Admin to create them, or, if your role allows it, add your Apple ID to Xcode and use automatic signing. If Xcode says you lack permission, go back to asking for the files.
Individual keys without an Issuer ID are supported in appship (and in fastlane), but appship has not yet been tested with a real individual key. More broadly, appship v0.3.0 is covered by tests and dry runs but has not yet been run against the live stores.
What to ask the client for
For file-based signing, ask for:
- The Apple Distribution certificate exported from Keychain Access as a
.p12, with a password. A.cerdownloaded from the Developer Portal is not enough, because it has no private key. - One App Store provisioning profile per bundle id. Apps with extensions (widgets, notification extensions) need one profile per extension.
- Optionally, a team API key: the
.p8file, Key ID and Issuer ID.
Have the .p12, its password and the .p8 sent over separate channels, such as a password manager, not in one chat message. Safer still: send the client a certificate signing request made on your Mac, and they send back a .cer and profile. The private key never leaves your machine, and you omit the certificate line from the config.
It is worth agreeing with the client up front on who holds which key and who renews it. Profiles and distribution certificates expire after about a year.
Configuring ios.signing and importing
Put the files in release/keys/, which appship init adds to .gitignore, and declare them in release/release.yml:
ios:
bundle_id: com.example.app
team_id: ABCDE12345
build_command: 'flutter build ipa --release --export-options-plist="$APPSHIP_EXPORT_OPTIONS"'
signing:
style: manual
certificate: release/keys/AppleDistribution.p12
profiles:
- release/keys/AppStore.mobileprovision
style is automatic (the default, Xcode signs) or manual. method defaults to app-store-connect; use app-store for Xcode older than 15.3. Setting team_id lets doctor compare it against the profile. The .p12 password never goes in the config: pass it in APPSHIP_P12_PASSWORD or type it when prompted.
appship signing import --dry-run
appship signing import
appship doctor
signing import copies the profiles to where Xcode reads them, imports the .p12 into your keychain (skipping it if the certificate is already there), and writes release/.appship/ExportOptions.plist. It asks for confirmation, or takes --yes. On CI, add --keychain <path> with APPSHIP_KEYCHAIN_PASSWORD to use a separate keychain; the GitHub Actions post covers that. If you only want the plist, run appship signing export-options.
Your build command must use $APPSHIP_EXPORT_OPTIONS, or the build ignores ios.signing. That plist only controls the export step. With style: manual, also turn off Automatically manage signing in the Xcode project and pick the right profile per target.
What doctor checks
When ios.signing is set or an .ipa exists, appship doctor shows an iOS · signing section. It reports errors for:
- a declared profile that is missing or unreadable
- a profile that is not App Store (ad hoc, development or enterprise) or not iOS
- an expired profile, or a profile whose certificates have all expired
- a profile team different from
ios.team_id - no profile matching
ios.bundle_id(wildcard App IDs are supported) - a missing
.p12 - an
.ipasigned for a different bundle id
It warns when a profile expires within 30 days, when the .p12 is readable beyond mode 600, when the build command does not use $APPSHIP_EXPORT_OPTIONS, and when the .ipa was signed with a profile not listed in ios.signing.profiles. On macOS it also checks that a valid certificate with its private key is in the keychain (self-signed ones do not count).
One credential profile per client
Store keys per client in a profile instead of inside each project:
appship credentials add client-a \
--asc-key ~/Downloads/AuthKey_ABC123DEFG.p8 --asc-key-id ABC123DEFG --asc-issuer-id 69a6de7a-… \
--play-json ~/Downloads/play-service-account.json
appship credentials list
appship credentials remove client-a
For an individual key, leave out --asc-issuer-id. The command copies the key files into ~/.appship/credentials/client-a/ with mode 600. Each project then points at its client:
credentials:
profile: client-a
To override it for one run, set APPSHIP_PROFILE. Environment variables come first, then values in release.yml, then the profile. See credentials in the guide.
doctor also reports an error if any .p8, .p12, .jks, .keystore, .mobileprovision, service-account*.json or file under release/keys/ is tracked by git. If a key is committed, revoke it first; see the guide's leaked key section.
The Android side
The client creates a service account in Google Cloud, enables the Google Play Android Developer API, and invites the service account's client_email in Play Console under Users and permissions, granting release and store presence permissions for the specific app (or at account level). Access can take up to 24 hours on a new account. Add the JSON to the same client profile with --play-json, and every Android command uses it.