Home › Build error fixes › iOS / Xcode
A build script could not find a file it needs (usually sentry-cli or node)
iOS / Xcode · last reviewed 2026-11-10
The error looks like this
Running script 'Bundle React Native code and images' the transform cache was reset. error: No such file or directory (os error 2) ** ARCHIVE FAILED **
Why it happens
This message comes from a Rust tool run during the bundle phase — most often sentry-cli failing to find node, the JS bundle or its source map.
How to fix it
- Make sure Xcode can find node: ios/.xcode.env.local with export NODE_BINARY=$(command -v node)
- If you use Sentry: check ios/sentry.properties exists and SENTRY_AUTH_TOKEN is set, or set SENTRY_DISABLE_AUTO_UPLOAD=true to confirm that is the cause.
- Read the lines just above this error for the path it was looking for.
Not sure this is your error? Let ReleaseMedic read the whole log
Build logs are long and the last line is rarely the real cause. ReleaseMedic finds the first real error, explains it and gives the steps — free, and the log never leaves your computer.
$ npx releasemedic log build.logOr pipe a build straight in: cd android && ./gradlew bundleRelease 2>&1 | npx releasemedic log -
Catch it before you build
Most release errors come from project settings you can check in seconds — signing, SDK levels, privacy manifests, permissions, push and login setup.
$ npx releasemedic