bugsnag/bugsnag-js

Command PhaseScriptExecution failed with a nonzero exit code bugsnag react native 0.74.2

mMarcos208 opened this issue · 4 comments

Describe the bug

Error: SOURCE_MAP /var/folders/3k/nck7spxn4z784p5hwg3x9z9c0000gn/T//bc91181974a09c3325e895abe51fef78-main.jsbundle.map could not be found.
Ensure the --sourcemap-output option is passed to the react-native bundle command.
Command PhaseScriptExecution failed with a nonzero exit code

Steps to reproduce

  1. Product
  2. Archive

Environment

  • Bugsnag version: "@bugsnag/react-native": "^7.24.0",

  • Device (e.g. iphonex): IOS

  • React native 0.74.2

Screenshot 2024-06-12 at 16 49 15 image

Hi @mMarcos208

It's not immediately clear from the logs what could be causing this. Could you share some code snippets or screenshots of your Bugsnag configuration code for both the JS and native layers?

It would also be useful to know which version of react-native you're using?

I update my version of bugsnag.

After running

$bugsnag-react-native-cli init
My project.pbxproj update and works for me.

From

shellScript = "set -e\n\nWITH_ENVIRONMENT="$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"\nREACT_NATIVE_XCODE="$REACT_NATIVE_PATH/scripts/react-native-xcode.sh"\n\n/bin/sh -c "$WITH_ENVIRONMENT $REACT_NATIVE_XCODE"\n";

To

shellScript = "export EXTRA_PACKAGER_ARGS="--sourcemap-output $TMPDIR/$(md5 -qs "$CONFIGURATION_BUILD_DIR")-main.jsbundle.map"\nset -e\n\nWITH_ENVIRONMENT="$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"\nREACT_NATIVE_XCODE="$REACT_NATIVE_PATH/scripts/react-native-xcode.sh"\n\n/bin/sh -c "$WITH_ENVIRONMENT $REACT_NATIVE_XCODE"\n";

Hi @mMarcos208,

Thanks for letting us know that you’ve been able to resolve this by updating BugSnag and re-running bugsnag-react-native-cli init. From your comment, it appears this issue is now resolved, but could you just confirm whether that's the case?

Hi @mMarcos208

As we haven't heard anything for awhile, we are now going to close this issue.

Please feel free to reopen this with us if you continue to have any more issues. If you'd like, you can raise a ticket with us directly by contacting support@bugsnag.com.