react-native: main.jsbundle does not exist. This must be a bug with
‘error: File /Users/user/Library/Developer/Xcode/DerivedData/NewApp-fvicxnfjlfuonigoqscurptyhntn/Build/Products/Release-iphonesimulator/NewApp.app/main.jsbundle does not exist. This must be a bug with’
React Native version:
react-native info
warn Your project is using deprecated “rnpm” config that will stop working from next release. Please use a “react-native.config.js” file to configure the React Native CLI. Migration guide: https://github.com/react-native-community/cli/blob/master/docs/configuration.md warn The following packages use deprecated “rnpm” config that will stop working from next release:
- react-native-extra-dimensions-android: https://npmjs.com/package/react-native-extra-dimensions-android Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide. info Fetching system and libraries information… System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Memory: 34.23 MB / 16.00 GB Shell: 3.2.57 - /bin/sh
Binaries: Node: 10.18.0 - /usr/local/opt/node@10/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/opt/node@10/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 25.0.0, 25.0.1, 25.0.2, 26.0.1, 26.0.2, 27.0.3, 28.0.0, 28.0.3, 29.0.2 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs ARM EABI v7a, android-23 | Google APIs Intel x86 Atom_64, android-26 | Android TV Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-26 | Google Play Intel x86 Atom, android-28 | Android TV Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64
IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.1 => 0.61.1
npmGlobalPackages: react-native-cli: 2.0.1 react-native-log-ios: 1.5.0
Steps To Reproduce
issue: ‘error: File /Users/user/Library/Developer/Xcode/DerivedData/NewApp-fvicxnfjlfuonigoqscurptyhntn/Build/Products/Release-iphonesimulator/NewApp.app/main.jsbundle does not exist. This must be a bug with’
Provide a detailed list of steps that reproduce the issue.
- running the app in debug mode i.e., product -> Edit Scheme -> Debug -> Debug Executable enabled - works fine.
- running the app release mode i.e., product -> Edit Scheme -> Release -> Debug Executable enabled - main.jsbundle does not exist. This must be a bug with
ways triaged to fix issue are below:
quit the currently running metro-bundler quit the tsc compiler quit xcode & simulator sudo rm -rf node_modules sudo yarn applying permission Read & Write manually to node_modules & all of it’s enclosed items sudo watchman watch-del-all sudo lsof -i :8081 sudo kill -9 processId open ios/ProjectName.xcworkspace
But i have not reached any solution so far. As i said before, on debug mode, it works fine, on release mode, throws the error and app did not launch
please help me out to fix this issue & go ahead
Thanks in Advance
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 16
- Comments: 24
Commits related to this issue
- fix https://github.com/facebook/react-native/issues/29356 — committed to incognitochain/incognito-wallet by MrCorncob 2 years ago
- Dev/test build store (#2640) * [TEST] build app - Android: 5.4.0 build 104 - iOS: 50.19 build 104 - XCode: 13.2.1 * fix wrong provision file name * replace xcode version * replace cert ... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.5.0 (#2651) * fix tab name not correct * [IC-2068] unshield fee ptoken * [IC-2068] Unshield ptoken * [IC-2068] Unshield ptoken * [Hot] fix update ui scrollview * [IC-2068] Un... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.6.0 (#2661) * [IC-2582] add field inChain Tx and outChain Tx export CSV * [IC-2585] Add button token info * [IC-2585] Add button token info * [IC-2585] Add button token info * [... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.6.0 (#2663) * Release/5.5.0 (#2651) * fix tab name not correct * [IC-2068] unshield fee ptoken * [IC-2068] Unshield ptoken * [IC-2068] Unshield ptoken * [Hot] fix update ui s... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.0 (#2665) * [IC-2582] add field inChain Tx and outChain Tx export CSV * [IC-2585] Add button token info * [IC-2585] Add button token info * [IC-2585] Add button token info * [... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.0 (#2666) * [IC-2582] add field inChain Tx and outChain Tx export CSV * [IC-2585] Add button token info * [IC-2585] Add button token info * [IC-2585] Add button token info * [... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.1 (#2669) * fix tab name not correct * update feature pUnified Token * feature pUnified Token * IC-2603 (#2610) * [IC-2603] Hot fix issue ignore passcode * [IC-2603] Hot fi... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.2 (#2671) * fix tab name not correct * update feature pUnified Token * feature pUnified Token * IC-2603 (#2610) * [IC-2603] Hot fix issue ignore passcode * [IC-2603] Hot fi... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.3 (#2679) * fix tab name not correct * update feature pUnified Token * feature pUnified Token * IC-2603 (#2610) * [IC-2603] Hot fix issue ignore passcode * [IC-2603] Hot fi... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.8.0 (#2681) * [IC-2585] Add button token info * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] Ne... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.8.0 (#2682) * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-249... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- release 5.9.0 (#2688) * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] New app feature: Tutorial. * [IC-2497] Fix fullscreen * [IC-2497] Fix fulls... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.7.3 (#2679) (#2690) * fix tab name not correct * update feature pUnified Token * feature pUnified Token * IC-2603 (#2610) * [IC-2603] Hot fix issue ignore passcode * [IC-2603... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
- Release/5.9.1 (#2691) * fix tab name not correct * update feature pUnified Token * feature pUnified Token * IC-2603 (#2610) * [IC-2603] Hot fix issue ignore passcode * [IC-2603] Hot fi... — committed to incognitochain/incognito-wallet by matterhorn063 2 years ago
In my case, when compiling the bundle in release mode it was throwing a JS error, regarding using numbers like
15_000
instead of15000
. I had to look in the xcode logs above the actual error to see the problem, for some reason the process did not return1
🤷This fixed it for me: https://github.com/facebook/react-native/issues/29351#issuecomment-657929014 https://github.com/facebook/react-native/issues/29351#issuecomment-657906376
cd ios && pod install
afternpm update react-native
For me, the bundle command executed by
react-native-xcode.sh
tried to use the wrong index file and the solution in this Stack Overflow answer worked.Turned out there was a syntax error in my source code, fixing the syntax error fixed the missing bundle error when archiving in Xcode. Not sure why Xcode didn’t report the syntax error while bundling for Android in command-line did.
This was the case for me, I was using node v14.16.1 which worked fine, then switched to v15.14.0 where it started to fail in production release.
@stefanoeb Thanks, that was my case as well. I find crazy how it works fine during development, but only fails when I try to generate a build to production. I spent an entire day today trying to figure out what was wrong until I found your message 😡
Thanks again for helping!
Thanks. We use fastlane gym running with Jenkins, which is a little different. Will try to find it in log next time.
@xilin If you’re building with Xcode check this place out:
If you’re using the CLI (like
react-native run-ios
) the output will be on the terminal directly, although it will be messyFor people who may encounter the same issue, just try to check your node or react native command could be found by XCode. Sometimes, this might be an issue if you are using nvm or fnm, especially when you are switching node versions.
I tried absolutely everything I could find here and anywhere else but nothing helps - always ending up with the same error:
I even checked the dir and indeed, there is NO
main.jsbundle
file in there. I updated vom 0.63.2 to 0.63.4, I tried pretty much everything 😢 … can anyone help?