Expo: triage an EAS failure
source /home/box/expo-builder/env.sh. Read-only except the optional fix branch.
eas build:view <id> --json: key onerror.errorCode(e.g.EAS_BUILD_UNKNOWN_GRADLE_ERROR,…_FASTLANE_ERROR,EAS_BUILD_TIMEOUT_ERROR,EAS_BUILD_HOOKS_ERROR,…_CREDENTIALS_DIST_CERT_MISMATCH,SERVER_ERROR) anderror.docsUrl.- Download
logFiles(gzipped JSON lines), runagent_cli inspect:build-log --file <log> --platform <p> --json; its phases only matchnpx expo …, so findpnpm install/pnpm expo prebuild/exportlines yourself. - Classify:
[stderr]lines are often noise; Metro "Unable to resolve" is a JS error; "None of these files exist" = a gitignored or uncommitted file; "Gradle build daemon disappeared" = out of memory, suggest alargeresource class (ask); credentials phases are report-only;RUN_EXPO_DOCTOR→pnpm dlx expo-doctor@latestlocally;SERVER_ERROR→ one retry (ask).- pnpm install phase:
ERR_PNPM_IGNORED_BUILDS→ add the package toallowBuildsinpnpm-workspace.yamlafter checking its script; frozen-lockfile /ERR_PNPM_OUTDATED_LOCKFILE→pnpm installlocally with the pinned pnpm, commit the lockfile; wrong pnpm version → alignpackageManagerand eas.jsonpnpm; duplicatereact-native→ check the override (pnpm why react-native); native module failing under the isolated linker → keep pnpm's default isolated linker (never switch linkers), checkpnpm why --depth=10 <pkg>for duplicates, pin withoverrides, else report or replace the library. - SDK 58: R8 now runs on release builds (release-only
ClassNotFoundException/NoSuchMethodError→ keep rules or anexpo-build-propertiesopt-out, ask); scene life-cycle errors in custom AppDelegate code; Strict TS API errors intsc; an SDK 58 build onlatestgets Xcode 26.6. - "bare workflow / runtime version policies not supported" or "bundleIdentifier in app.json is ignored because an ios directory was detected", with no committed
ios//android/: a prebuild ran before the build config resolved, so EAS saw a generated native dir and went bare (Expo Launch does this: configure → prebuild →build:internal). Show both evidence lines, note the CNG config (runtimeVersionpolicy, bundle id) is ignored, and treat it as a tooling-order bug worth reporting upstream. Launch workaround: a staticruntimeVersion(expo-launch-app). - Install-time "integrity couldn't be verified" (iOS ad hoc, build succeeded, won't launch): the device isn't in the provisioning profile. Download
artifacts.buildUrl,unzipit, read the embedded profile'sProvisionedDevices:
UDID missing → register it (openssl smime -inform der -verify -noverify -in Payload/*.app/embedded.mobileprovisioneas device:create, Website option) and rebuild; don't re-sign the IPA.
- Link the dashboard Compare view vs the last green build.
- Workflows:
eas workflow:view <id> --json,eas workflow:logs <id> --all-steps --json; submissions:eas submit:view <id> --json. - Reproduce locally (
CI=1 pnpm install --frozen-lockfile,pnpm expo prebuild --no-installin a scratch copy,pnpm expo export), then a fix branch and draft PR (PR policy) or a report: root cause, evidence, suggested fix.