I built an app that runs well on iOS Simulator. When I try to build it on an iOS device however, the build and installation succeeds but upon open, I get this message:
No bundle URL present.
Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
I've now tried on three devices so device isn't issue. So far I've: 1) deleted iOS build folder and rebuilt 2) npm installed 3) cleaned xCode data 4) Restarted every process several times
One thing I've noticed is that the React Packager doesn't bundle index.js at the end of the build like it does when I run Simulator. This may be the core of the problem but I'm not sure how to approach fixing it.
I've also read that using React-Native-Router-Flux (which I do) may have some impact on this process, but also not sure what relevant fix would be.
Thanks!