Edit Scheme > Run.Build Configuration from Debug to Release.cmd + R to run app.What you expected to happen?
Run app correctly with no error.
Export a log like [CodePush] Loading JS bundle from file:///~ , I think.
What actually happens?
*** Terminating app due to uncaught exception 'RCTFatalException: Something went wrong. Please verify if generated JS bundle is correct. ', reason: 'Something went wrong. Please verify if generated JS bundle is correct. '
2.1.1-beta0.44.0The error was fixed.
Process is below.
main.jsbundle file manually.react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle command.main.jsbundle file to Xcode.main.jsbundle from Xcode and add main.jsbundle to Xcode againHi,
I think I鈥檓 running into the same issue. With @kohei-takata fixes, my assets don鈥檛 load. What should I do in this case?
@kohei-takata 's answer worked for me. _I think_ CodePush requires you to ship a jsbundle with the app binary (in release mode). @JakeRawr you need to specify assets destination dir while bundling. Here is the complete script:
react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ios
I'm trying to bundle my main.jsbundle separately and I always end up with this error. It maps up in the xcodeproj properly though, any ideas?
The error was fixed.
Process is below.
- Create
main.jsbundlefile manually.
I runreact-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundlecommand.- Reattach
main.jsbundlefile to Xcode.
Remove reference ofmain.jsbundlefrom Xcode and addmain.jsbundleto Xcode again
Worked for me, thanks!
Most helpful comment
The error was fixed.
Process is below.
main.jsbundlefile manually.I run
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundlecommand.main.jsbundlefile to Xcode.Remove reference of
main.jsbundlefrom Xcode and addmain.jsbundleto Xcode again