Building with XCode fails : main.jsbundle.map could not be found
See original GitHub issueDescribe 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
- npx @bugsnag/react-native-cli init
- build with XCode
Environment
- Bugsnag version: 7.14.1
- Device (e.g. iphonex): XCode
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @lc3t35 - just to let you know that a fix for this was released in
v7.14.2
ofbugsnag-js
🎉@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 👍