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.

Building with XCode fails : main.jsbundle.map could not be found

See original GitHub issue

Describe the bug

When build with XCode, react-native / Expo SDK43 using “@bugsnag/react-native”: “^7.14.1”, here is the error :

/bin/sh -c /Users/laurent/Library/Developer/Xcode/DerivedData/Shares-ffxwshugamgcxphhliriheesafcu/Build/Intermediates.noindex/ArchiveIntermediates/Shares/IntermediateBuildFilesPath/Shares.build/Release-iphoneos/Shares.build/Script-F1942C4D17D945208F03C662.sh

Error: SOURCE_MAP /var/folders/mw/kg3_gh9j26n8qd_w2sxkgkhm0000gn/T//884bc07e99d40030ad4d5ab846c7f5ac-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. npx @bugsnag/react-native-cli init
  2. build with XCode

Environment

  • Bugsnag version: 7.14.1
  • Device (e.g. iphonex): XCode

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
luke-beltoncommented, Jan 6, 2022

Hi @lc3t35 - just to let you know that a fix for this was released in v7.14.2 of bugsnag-js 🎉

0reactions
luke-beltoncommented, Mar 2, 2022

@systemlevel - we haven’t heard anything from you on this in a little while so we’re not going to progress this any further at this stage, but do let us know if you can share any additional details and we’d be happy to investigate 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

main.jsbundle does not exist. This must be a bug with #29356
For people who may encounter the same issue, just try to check your node or react native command could be found by XCode....
Read more >
main.jsbundle does not exist. this must be a bug with + echo ...
Now your can run the command to generate main.jsbundle . yarn build:ios or npm run build:ios. Open the Xcode > Select project target...
Read more >
Impossible to build archive | Apple Developer Forums
Since updating xcode to 12.4, I can't produce any archives, but before that everything was ... Release-iphoneos / jdc.app / main.jsbundle does not...
Read more >
main.jsbundle does not exist [fixed] | by Onexlab - Medium
Open the package.json file and add the following line · Run following command. It will generate main. · Select -> Target → Build...
Read more >
React Native Crash Reporting and Error Tracking
build /main.jsbundle.map # <- add this line to output source maps # leave the rest of the script unchanged. Moving forward, you can...
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