sentry-react-native: [IOS] Upload Debug Symbols to Sentry failed on build

OS:

  • [] Windows
  • MacOS
  • [] Linux

Platform:

  • iOS
  • [] Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.17.0

react-native version: 0.73.2

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://...@sentry.io/...'
  // other options
});

I have the following issue:

I installed the package with command npx @sentry/wizard@latest -s -i reactNative and the metro config is setup aswell It’s look like it’s an error during the execution of the Run Script Phase which is Upload Debug Symbols to Sentry And the script is /bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh

Steps to reproduce:

  • npx @sentry/wizard@latest -s -i reactNative
  • Build project with XCode (15.0.1)

Actual result: Command PhaseScriptExecution failed with a nonzero exit code PhaseScriptExecution Upload\ Debug\ Symbols\ to\ Sentry

BuildFail.txt

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

i faced the same issue , and i fixed that by modifying the project.pbxproj file 16A9994D004C413890C6E178 /* Upload Debug Symbols to Sentry */ = { … runOnlyForDeploymentPostprocessing = 1; // change 0 to 1 … };

Hello everyone, here is a fix:

Until the hotfix is out, you can use patch-package or manually edit the sentry-xcode-debug-files.sh script.