question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing sentry-cocoa RN SDK v5

See original GitHub issue

OS:

  • 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:closed
  • Created 10 months ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
krystofwoldrichcommented, Dec 2, 2022

Seems like yarn ignored the wizard version specified in the SDK dependencies.

You can use this command to ensure the latest v1 version of the wizard.

npx @sentry/wizard@1 -i reactNative -p ios android

After that follow these steps.

Or if possible use 5.0.0-alpha.8 that is prepared for the RN >= 0.69.

yarn add @sentry/react-native@5.0.0-alpha.8
npx @sentry/wizard -i reactNative -p ios android
0reactions
alexbortoncommented, Dec 6, 2022

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! 🙏

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found