What React Native libraries do you use?
RN New Architecture, React Navigation, React Native without Frameworks, Hermes
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
7.0.1
How does your development environment look like?
info Fetching system and libraries information...
System:
OS: macOS 15.6.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 36.13 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.12.0
path: ~/.nvm/versions/node/v22.12.0/bin/node
Yarn: Not Found
npm:
version: 10.9.0
path: ~/.nvm/versions/node/v22.12.0/bin/npm
Watchman:
version: 2025.04.28.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK:
API Levels:
- "28"
- "30"
- "31"
- "32"
- "33"
- "34"
- "35"
Build Tools:
- 30.0.2
- 30.0.3
- 31.0.0
- 32.0.0
- 32.1.0
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
System Images:
- android-26 | Google APIs Intel x86 Atom
- android-26 | Google APIs Intel x86_64 Atom
- android-28 | Google APIs Intel x86 Atom
- android-30 | Intel x86_64 Atom
- android-30 | Google APIs Intel x86 Atom
- android-30 | Google APIs Intel x86_64 Atom
- android-30 | Google Play Intel x86 Atom
- android-31 | Google APIs Intel x86_64 Atom
- android-32 | Google APIs Intel x86_64 Atom
- android-33 | Google APIs Intel x86_64 Atom
- android-34 | Google APIs Intel x86_64 Atom
- android-35 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12700392
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /Users/nmehlei/.sdkman/candidates/java/current/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.1
wanted: 20.0.1
react:
installed: 19.1.1
wanted: 19.1.1
react-native:
installed: 0.81.1
wanted: 0.81.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
info React Native v0.81.4 is now available (your project is running on v0.81.1).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.81.4
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.1&to=0.81.4
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
Sentry.init()
Sentry.init({
dsn: environment.sentry.dsn,
// Adds more context data to events (IP address, cookies, user, etc.)
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
sendDefaultPii: true,
// Configure Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [
Sentry.mobileReplayIntegration(),
captureConsoleIntegration({ levels: ["warn", "error"] }),
],
environment: environment.environmentName,
// uncomment the line below to enable Spotlight (https://spotlightjs.com)
// spotlight: __DEV__,
});
Steps to Reproduce
Upgrade an existing project to RN 0.81.1 (although this may not happen in all cases)
Expected Result
Compilation should not break at Sentry step
Actual Result
While upgrading to React Native 0.81.1, the Sentry step seems to fail during compilation/building.
Running the app via react native commands shows:
error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'MyApp.xcworkspace'.
From inside XCode, this step fails:
Node found at: /Users/nmehlei/.nvm/versions/node/v18.19.0/bin/node
/Users/user/Dev/Source/MyApp/MyApp/ios/Pods/../../node_modules/react-native/scripts/xcode/with-environment.sh: line 46: /bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh /Users/user/Dev/Source/MyApp/MyApp/ios/Pods/../../node_modules/react-native/scripts/react-native-xcode.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
What React Native libraries do you use?
RN New Architecture, React Navigation, React Native without Frameworks, Hermes
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
7.0.1
How does your development environment look like?
Sentry.init()
Steps to Reproduce
Upgrade an existing project to RN 0.81.1 (although this may not happen in all cases)
Expected Result
Compilation should not break at Sentry step
Actual Result
While upgrading to React Native 0.81.1, the Sentry step seems to fail during compilation/building.
Running the app via react native commands shows:
From inside XCode, this step fails: