Blog · · 6 min read

Shipping iOS apps for clients when you don't own the Apple account

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:

JobWhat it needsWho 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 XcodeTeam 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:

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:

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:

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.