Error: main.jsbundle
does not exist. This must be a bug with React Native
#4
Labels
main.jsbundle
does not exist. This must be a bug with React Native
#4
Description
When building for
Release
Reproduction
Additional Information
Solution
There are many cases that lead to this bug. And the root cause always point to 1 things
bundle files
.Run bundle file manually (add to
package.json > scripts
). RN will bundle and generatemain.jsbundle
Case 1: Check missing file in
XCode > Targets App > Build Phase > Copy Bundle Resources
If not exist then add it
Case 2: Disable script in
XCode > Target App > Build Phase > Bundle React Native code and images
Comment out the
react-native-xcode.sh
then run bundle manually then Archive will success.Case 3: Update script in
XCode > Target App > Build Phase > Bundle React Native code and images
Sometimes your
node
is install by nodeenv so you need to specify the pathReferences
https://stackoverflow.com/a/54645100/741197
The text was updated successfully, but these errors were encountered: