Skip to content

Error codes

Errors appear as text, or with --json as { "success": false, "error": { "code", "message", "fix" } }. The Exit column is the exit code of the command. Every code starting with MISSING_CONFIG exits 2, INTERRUPTED exits 130 (143 for SIGTERM, 129 for SIGHUP), everything else exits 1. Two codes exit 2 only from init: KEYSTORE_NOT_FOUND and CREDENTIALS_NOT_READABLE. EAS_CREDENTIALS_NOT_FOUND also exits 2.

The Fix column is the fix text the tool prints, shortened to one line. The --json error.fix has the full text.

CodeExitMeaningFix
MISSING_CONFIG_SHIPYARD2.shipyard/config.json not foundRun rn-shipyard init to set up the project first
INVALID_CONFIG1.shipyard/config.json has an invalid formatDelete it and run rn-shipyard init again
MISSING_CONFIG_EAS2eas.json not foundCreate eas.json or run eas build:configure
INVALID_EAS_CONFIG1eas.json is not valid JSON, or has no build sectionCheck that it contains valid JSON; add a build section with at least one profile
MISSING_CONFIG_APP2No app.json, app.config.js or app.config.ts foundCreate an app.json (or app.config.js / app.config.ts)
INVALID_APP_CONFIG1The config is missing name or slug, or app.json is not valid JSONAdd name and slug (under expo in app.json), or fix the syntax error
APP_CONFIG_EVAL_FAILED1npx expo config --json failed for a dynamic config, or the expo package is not installedRun npx expo config --json in the project to see the error; run npm install (or npm install expo)
MISSING_CONFIG_IOS2Required iOS values missing in init (APPLE_TEAM_ID, MATCH_GIT_URL, bundle identifier)Set the missing environment variables or add the values to eas.json or your app config
MISSING_CONFIG_IOS_CREDENTIALS2No App Store Connect credentials for submitSet an API key (EXPO_ASC_* or APP_STORE_CONNECT_API_KEY_*), or an Apple ID with a password; or run without --non-interactive to log in
MISSING_CONFIG_ANDROID2No keystore password, or the credentials file lacks a fieldSet ANDROID_KEYSTORE_PASSWORD or add the missing fields to the credentials file
MISSING_CONFIG_PROJECT2The requirements pre-flight found only project config missing (for example .shipyard/config.json or eas.json)Run rn-shipyard init, then rn-shipyard doctor
REQUIREMENTS_NOT_MET1The requirements pre-flight found a blocking problemFollow the listed fixes, then run rn-shipyard doctor (or pass --skip-checks)
NO_PLATFORMS1No platform enabled in the config, or the one given with --platform is not set up (build, submit)Run rn-shipyard init --platform <ios|android>
INVALID_FLAGS1Conflicting or invalid flags (init Android flags, doctor --platform)Use --platform android (or all) or drop the Android flags; pass --android-keystore with --android-credentials; use --platform ios, android or all
INVALID_USAGE1Unknown option or missing argumentRun rn-shipyard <command> --help
CodeExitMeaningFix
INVALID_MATCH_GIT_URL1The Match URL contains credentials, or starts with -Use an SSH URL or a plain https:// URL, and MATCH_GIT_BASIC_AUTHORIZATION for access
MATCH_PASSWORD_MISSING1init --save-match-password was used but MATCH_PASSWORD is unset or emptyRun MATCH_PASSWORD=<the Match repo passphrase> rn-shipyard init --platform ios --save-match-password
KEYCHAIN_SAVE_FAILED1init --save-match-password could not store the password in the macOS keychain (no security, locked keychain)Run it on a Mac with an unlocked login keychain, or keep MATCH_PASSWORD in the environment
MATCH_AUTH_MISSING1Non-interactive init has no App Store Connect API key and no Apple ID, so Match cannot sign in. The files are written; setup.ios has status: "failed" and this errorCodeConfigure the key (EXPO_ASC_API_KEY_PATH, EXPO_ASC_KEY_ID, EXPO_ASC_ISSUER_ID, or ascApiKey* in eas.json) or set FASTLANE_USER, then re-run init --platform ios
MATCH_SETUP_FAILED1init ran Match and it failed (wrong MATCH_PASSWORD, Apple or repository error). The files are written; setup.ios has status: "failed", message is the reasonFix the Match error in the output, then re-run init --platform ios
MATCH_REPO_AUTH_FAILED1The pre-clone of the Match repo before an iOS build failedLoad your key into ssh-agent (ssh-add --apple-use-keychain ~/.ssh/id_ed25519) or configure a git credential helper; or run without --non-interactive to be prompted
APPLE_LOGIN_FAILED1The Apple ID login step before the submit failed (or the Fastfile lacks the login lane)Check your Apple ID and password, then run submit again; or use an App Store Connect API key
FASTLANE_NOT_FOUND1Fastlane is not installedInstall Fastlane: gem install fastlane (doctor suggests brew install fastlane)
ASC_KEY_INVALID1init: App Store Connect rejected the API key (401: wrong key id, issuer id or a revoked key), or the .p8 is unreadable or not an EC keyCheck key id, issuer id and the .p8 in App Store Connect > Users and Access > Integrations > App Store Connect API
XCWORKSPACE_NOT_FOUND1No .xcworkspace in ios/Run npx expo prebuild --platform ios and check that CocoaPods installed
XCWORKSPACE_AMBIGUOUS1More than one .xcworkspace in ios/Keep exactly one workspace in ios/ (delete stale ones), then build again

Importing EAS credentials (init --from-eas)

Section titled “Importing EAS credentials (init --from-eas)”
CodeExitMeaningFix
EAS_CREDENTIALS_NOT_FOUND2No credentials.json at the pathRun npx eas-cli credentials -p <ios|android>; iOS: answer n to “Do you want to log in to your Apple account?”; choose “credentials.json: Upload/Download credentials between EAS servers and your local json”, then “Download credentials from EAS to credentials.json”. In a terminal init --from-eas offers to run it for you
EAS_CREDENTIALS_INVALID1The file is not valid JSON, lacks a required field, has no section for the requested platform, or --platform asked for a platform it does not containDownload it again with eas credentials; do not edit it by hand
EAS_KEYSTORE_INVALID1The keystore file is missing, keytool cannot open it with the stored password, the key alias does not exist, or the key password is wrongDownload the credentials again; the keystore and credentials.json must come from the same download
EAS_KEYSTORE_EXISTS1A different keystore is already at ~/.config/rn-shipyard/<slug>/release.keystore and was not overwritten (non-interactive, or you answered no)Move it yourself (it may be your only copy), or run in a terminal to be asked; a replaced file is kept as .bak-<time>
EAS_IOS_EXTRACT_FAILED1openssl could not read the distribution certificate with its password, is not installed, or a certificate or profile file is missingDownload the credentials again; make sure openssl is on PATH
EAS_IOS_IMPORT_FAILED1fastlane match import failed (git access, Apple login, MATCH_PASSWORD, certificate not found in your developer account), or the Fastfile lacks the import laneFix the problem in the output and re-run (the import is safe to repeat); run init without --non-interactive, or set an App Store Connect API key

MISSING_CONFIG_IOS also exits 2 here when MATCH_PASSWORD (and no Match passphrase in the macOS keychain), MATCH_GIT_URL or APPLE_TEAM_ID is missing in non-interactive mode.

CodeExitMeaningFix
KEYSTORE_NOT_FOUND2 from init, else 1Keystore file missingCheck the --android-keystore path, or keystorePath in .shipyard/config.json
CREDENTIALS_NOT_READABLE2 from init, else 1Cannot read the credentials fileCheck --android-credentials or credentialsPath (JSON with keystorePassword, keyAlias, keyPassword)
INVALID_KEYSTORE_PASSWORD1Password shorter than 6 characters, or entered differently twiceUse 6 or more characters, entered identically twice
KEYTOOL_NOT_FOUND1keytool is not on PATHInstall a JDK (brew install openjdk) and make sure keytool is on PATH
KEYSTORE_GENERATION_FAILED1keytool failedCheck the keytool message (passwords need 6+ characters), or pass --android-keystore
SHELL_DROPS_DOTTED_ENV1/bin/sh drops variables with dots in their nameRestore /bin/sh to the system default
GRADLE_FILE_NOT_FOUND1A Gradle file is missingRun npx expo prebuild --platform android first
VERSION_CODE_PATCH_FAILED1versionCode N not found in android/app/build.gradleOpen an issue: the generated Gradle template changed
AAB_NOT_FOUND1Gradle succeeded but no .aab was foundCheck the Gradle output above
INVALID_VERSION_CODE1--version-code is not a positive integerPass a positive integer
VERSION_CODE_REUSED1--version-code is not greater than the last used oneUse a larger value, or omit --version-code
INVALID_BUILD_NUMBER1--build-number is not a positive integerPass a positive integer
BUILD_NUMBER_REUSED1--build-number is not greater than the last used iOS build numberUse a larger value, or omit --build-number
FASTFILE_OUTDATED1fastlane/Fastfile was generated by an older rn-shipyard and its iOS build lane has no signing or build-number step, or (init) it lacks the shipyard_match_setup laneRun rn-shipyard init again to regenerate it
CodeExitMeaningFix
PREBUILD_FAILED1expo prebuild --clean failedRun npx expo prebuild --clean yourself and fix the error
NATIVE_DIR_UNTRACKED1ios/ or android/ exists, is not committed and not ignoredCommit it, add it to .gitignore, or delete it
NATIVE_DIR_NOT_IN_GIT1ios/ or android/ exists but the project is not under gitDelete the folder, or put the project under git
SECRET_IN_NATIVE_DIR1A keystore or credentials file sits inside a folder prebuild would deleteMove it to .shipyard/android/ or outside the project
NO_ARTIFACTS1No build artifacts in historyRun rn-shipyard build first
SUBMIT_FAILED1build --submit got no submit resultRun rn-shipyard submit on its own
CodeExitMeaningFix
INPUT_CLOSED1Input ended before all prompts were answeredRun in a terminal, or pass --non-interactive and provide values through environment variables
INTERRUPTED130Ctrl-C (143 for SIGTERM, 129 for SIGHUP)Run the command again
INIT_FAILED1init failed for another reasonRe-run with the same flags; if it persists, open an issue with the message
UNEXPECTED_ERROR1An unhandled errorRun the command again; if it persists, open an issue with the message

rn-shipyard is an independent open-source project, not affiliated with or endorsed by Expo. Expo and EAS are trademarks of 650 Industries, Inc.