Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mMarcos208 opened this issue Jun 12, 2024 · 4 comments

Comments

@mMarcos208
Copy link

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
@clr182
Copy link

clr182 commented Jun 13, 2024

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?

@clr182 clr182 added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 13, 2024
@mMarcos208
Copy link
Author

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";

@matthewjhowells matthewjhowells removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 21, 2024
@matthewjhowells
Copy link

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?

@matthewjhowells matthewjhowells added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jun 21, 2024
@mclack
Copy link
Contributor

mclack commented Jul 8, 2024

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 [email protected].

@mclack mclack closed this as completed Jul 8, 2024
@mclack mclack removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants