opened 08:06PM - 01 Jul 20 UTC
closed 07:50AM - 03 Jul 20 UTC
**OS:**
- [ ] Windows
- [X] MacOS
- [ ] Linux
**Platform:**
- [X] iOS…
- [ ] Android
**SDK:**
- [X] `@sentry/react-native` (>= 1.0.0)
- [ ] `react-native-sentry` (<= 0.43.2)
**SDK version:** 15.0.0
**`react-native` version:** 0.62.2
**Are you using Expo?**
- [ ] Yes
- [X] No
**Are you using sentry.io or on-premise?**
- [X] sentry.io (SaaS)
- [ ] on-premise
**Configuration:**
(`@sentry/react-native`)
```
Sentry.init({
dsn: 'https://...@sentry.io/...'
});
```
---
**I have following issue:**
Building an iOS App Sentry fails with: `env: node: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code`
Executing `/bin/sh -c /Users/{USERNAME}/Library/Developer/Xcode/DerivedData/{ID}/Build/Intermediates.noindex/{APP}.build/Release-iphoneos/{APP}.build/Script-00DD1BFF1BD5951E006B06BC.sh` in on the console will throw the following error: `line 5: ../node_modules/@sentry/cli/bin/sentry-cli: No such file or directory`
**Steps to reproduce:**
Following the setup on https://docs.sentry.io/platforms/react-native/
- Step 1: `yarn add @sentry/react-native`
- Step 2: `yarn sentry-wizard -i reactNative -p ios android`
- Step 3: `cd ios && pod install`
- Setp 4: Setting up JS Error handling
Connecting the SDK to Sentry and verifying it in DEV Mode works fine.
In XCode:
- Step 5: Clean Build Folder
- Step 6: Build Configuration Release
- Step 7: Removing `localhost` from `App Transport Security Settings`
- Step 8: Run Build
**Actual result:**
Build fails `env: node: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code`
**Expected result:**
Build runs successfully.