Submitting to App Store Connect
rn-shipyard submit --platform ios uploads the latest successful .ipa with Fastlane pilot. It does not wait for Apple’s processing to finish.
rn-shipyard checks credentials before it uploads. A missing credential fails at once with MISSING_CONFIG_IOS_CREDENTIALS and exit code 2. submit also runs the requirements pre-flight first; --skip-checks bypasses it.
Option 1: App Store Connect API key (recommended)
Section titled “Option 1: App Store Connect API key (recommended)”No password, no 2FA, works unattended.
- In App Store Connect, go to Users and Access, then Integrations, then App Store Connect API, and create a key. The role needs permission to upload builds (App Manager is enough).
- Download the
.p8file. Apple lets you download it once. Keep it outside the repo. - Note the Key ID and the Issuer ID.
export APP_STORE_CONNECT_API_KEY_KEY_ID=ABC123DEFGexport APP_STORE_CONNECT_API_KEY_ISSUER_ID=69a6de70-0000-0000-0000-000000000000export APP_STORE_CONNECT_API_KEY_KEY_FILEPATH=~/secrets/AuthKey_ABC123DEFG.p8rn-shipyard submit --platform iosAlready set up for eas submit? Nothing to do: rn-shipyard reads submit.<profile>.ios.ascApiKeyPath, ascApiKeyId and ascApiKeyIssuerId from eas.json (and appleTeamId, ascAppId). Environment variables, when set, win over eas.json.
You can pass the key contents instead of a path with APP_STORE_CONNECT_API_KEY_KEY. The EAS names EXPO_ASC_KEY_ID, EXPO_ASC_ISSUER_ID and EXPO_ASC_API_KEY_PATH are accepted as aliases. If both a Fastlane name and an EAS name are set, the Fastlane name wins.
The API key is checked first.
Option 2: Apple ID
Section titled “Option 2: Apple ID”Use this if you do not have an API key.
- The Apple ID comes from
submit.<profile>.ios.appleIdineas.json, orFASTLANE_USER(aliasEXPO_APPLE_ID). - The password is an app-specific password (create one at appleid.apple.com) in
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD(aliasEXPO_APPLE_APP_SPECIFIC_PASSWORD), or your account password inFASTLANE_PASSWORD(aliasEXPO_APPLE_PASSWORD).
export FASTLANE_USER=you@example.comexport FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=abcd-efgh-ijkl-mnoprn-shipyard submit --platform iosIn an interactive terminal (and without an API key), rn-shipyard asks Log in to your Apple account now? (Y/n) before the upload. If you say yes, it runs the login on your terminal: Fastlane asks for the password and the 2FA code, stores the password in the keychain and caches the session, and the upload then runs non-interactive and reuses both. Ctrl-C at the question aborts the run with exit 130 and uploads nothing; closing input (Ctrl-D) counts as no. A failed login is APPLE_LOGIN_FAILED. With rn-shipyard build --submit the question is asked before the build starts. 2FA codes need a person at the terminal, so use the API key in CI, where CI or --non-interactive skips the question.
Keychain instead of a password variable
Section titled “Keychain instead of a password variable”Store the password once with Fastlane:
fastlane fastlane-credentials add --username you@example.comrn-shipyard finds it by running security find-internet-password -s deliver.<apple id>, which only reports whether the entry exists and never prints the password. Fastlane then reads it without prompting.
Check before you upload
Section titled “Check before you upload”rn-shipyard submit --platform ios --dry-runIt checks the .ipa exists and that credentials are available, then prints the Fastlane command.
rn-shipyard is an independent open-source project, not affiliated with or endorsed by Expo. Expo and EAS are trademarks of 650 Industries, Inc.