Failing sentry-cocoa RN SDK v5
See original GitHub issueOS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 4.10.1
react-native
version: 0.70.5
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
I have following issue:
Installing a fresh setup on a RN70 project using the wizard throws up this error when building to running a build;
Running script 'Bundle React Native code and images'
▸ Generating 'native.app.dSYM'
▸ Running script '[CP] Embed Pods Frameworks'
▸ Running script '[CP] Copy Pods Resources'
▸ Running script 'Upload Debug Symbols to Sentry'
❌ error: Found argument 'debug-files' which wasn't expected, or isn't valid in this context
Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'native' from project 'native')
Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'native' from project 'native')
Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'native' from project 'native')
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening native.xcworkspace.
Steps to reproduce:
- From a fresh React Native 70 app
yarn add @sentry/react-native
npx @sentry/wizard -i reactNative -p ios android
- (select project)
cd ios && pod install
cd ../ && react-native run-ios
(OR)yarn ios
Actual result:
Error as seen above on the Upload Debug Symbols to Sentry
phase
Expected result:
Clean setup and build/start script should run as expected.
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Troubleshooting for React Native | Sentry Documentation
Try passing --force-foreground to the Sentry CLI command in the build script. This is possibly a bug with our CLI that we are...
Read more >Changelog - CocoaPods
With this version, Sentry groups errors by domain and code. MyDomain 1 and MyDomain 2 are going to be two separate issues in...
Read more >Newest 'react-native-sentry' Questions - Stack Overflow
I am using CircleCI to build for iOS (and Android) and recently, the iOS build fails with these error messages: Compiling RNSentry.m ❌...
Read more >CHANGELOG.md · 梦饷集团/sentry-cocoa - Gitee.com
This release contains a fix for the sampling of transactions. The SDK applied both sample rates for events and transactions when capturing transactions....
Read more >@sentry/react-native NPM | npm.io
@sentry/react-native v4.10.1 · Sentry SDK for React Native · Requirements · Features · Installation and Usage · Upgrade · Blog posts · Resources....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like
yarn
ignored thewizard
version specified in the SDK dependencies.You can use this command to ensure the latest v1 version of the wizard.
After that follow these steps.
Or if possible use
5.0.0-alpha.8
that is prepared for the RN >= 0.69.Success! 🎉
Not sure exactly the difference (i was trying alpha.8 - i succeeded with .10)
I also made sure to do a
pod install
after removing the@sentry/react-native
completely and then followed the steps above.Builds in iOS and Android, no problem. Thanks guys! 🙏