Archive crashing with main.jsbundle does not exist (after upgrade to xcode 10.2)
See original GitHub issueHi there,
I’m trying to make app archive with command line and got this error:
Loading dependency graph, done.
error SHA-1 for file /Users/Admin/Projects/app/node_modules/metro/src/lib/polyfills/require.js (/Users/Admin/Projects/app/node_modules/metro/src/lib/polyfills/require.js) is not computed. Run CLI with --verbose flag for more details.
+ [[ false != true ]]
+ [[ ! -f /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle ]]
+ echo 'error: File /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle does not exist. This must be a bug with + echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native version:
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 18.16 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.15.1 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.8 => 0.59.8
npmGlobalPackages:
react-native-cli: 2.0.1
Steps To Reproduce
xcodebuild -workspace app.xcworkspace -scheme app -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/app.xcarchive
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:14
Top Results From Across the Web
main.jsbundle does not exist. this must be a bug with + echo ...
Next, open your project using XCode, right click on your project name then click Add Files to " YourProjectName ", choose the main.jsbundle...
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 >[Solved]-Xcode not reflecting latest app codes from react-native
The copy message does not show up. FAIL, new changes not reflected in the build. Note that main.jsbundle exists in both Xcode and...
Read more >Main.Jsbundle Does Not Exist. This Must Be A Bug ... - ADocLib
Ask questionsArchive crashing with main.jsbundle does not exist after upgrade to xcode 10.2. Hi there. I'm trying to make app archive with command...
Read more >React Native build failed - "Error: main.jsbundle does not exist"
error: File /Users/distiller/Library/Developer/Xcode/DerivedData/xxx/BuildProductsPath/Release-iphoneos/xxx/main.jsbundle does not exist.
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 Free
Top 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
It turned out I had the Current node installed instead of the LTS version. Now it’s working.
I use nvm for node version management. Tried to upgrade node, got the same issue.
Seems like I forgot to reinstall global packages: Migrating from 8.12.0 to 13.1.0:
That fixed the issue