sentry-react-native: Migrating from 4.15.0 to 5.0.0: Command PhaseScriptExecution failed with a nonzero exit code
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 5.0.0
react-native
version: 0.71.3
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
Configuration:
(@sentry/react-native
)
Sentry.init({
dsn: https://0e607a3e9cc8417a832a7a77952479c7@o171571.ingest.sentry.io/1250057,
environment: dev,
});
I have following issue:
During iOS build in XCode, I’m getting this build error:
FBReactNativeSpec
error build: Command PhaseScriptExecution failed with a nonzero exit code
Steps to reproduce:
- Followed the migration guide from 4.x to 5.x (we were previously on 4.15.0)
- I tried applying this fix: https://docs.sentry.io/platforms/react-native/troubleshooting/#ios-build-script-failed
- I also tried this fix: https://docs.sentry.io/platforms/react-native/troubleshooting/#using-node-with-nvm-or-volta
- Neither of the above fixes worked, and I am not sure what to try next.
Actual result:
Build error described above:
FBReactNativeSpec
error build: Command PhaseScriptExecution failed with a nonzero exit code
Expected result:
Successful iOS build
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (10 by maintainers)
@sweatherall Hi, thank you for the reply.
Here is the fixed script.
Could you describe the steps you did during the upgrade from 4.x to 5.x, I would like try figure what cause the corrupted build script?
Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.