Uh oh!
There was an error while loading. Please reload this page.
Allow bundling in Simulator - #5779
Conversation
Feel free to reject this PR, though I'm removing this because it causes a total failing state without any clue to the developer as to what's going on. It just yields a cryptic error message: ``` 2016-02-04 18:59:17.582 [error][tid:com.facebook.React.JavaScript] Unable to execute JS call: __fbBatchedBridge is undefined 2016-02-04 18:59:17.585 SydTechEco[76215:10166934] *** Terminating app due to uncaught exception 'RCTFatalException: Unable to execute JS call: __fbBatchedBridge is undefined', reason: 'Unable to execute JS call: __fbBatchedBridge is undefined' ``` I ran into this when I set my project to Release instead of Debug, and tried to test in Simulator. This held me up and prevented me from meeting a launch goal, which was really frustrating. As developers, we should have the choice of running a release copy on Simulator or a device, as a final check before publishing to the AppStore.
facebook-github-bot
commented
Feb 5, 2016
frantic
commented
Feb 5, 2016
Hi @ffxsam, sorry about your bad experience, we are still figuring out what's the best thing to do here. We made it so the bundling process doesn't happen for simulator to save time when running the app for the first time, because packager runs with the simulator anyways. I see two ways to adjust this PR to fit both our assumption and your use case:
|
ffxsam
commented
Feb 5, 2016
@frantic Thanks for the response! You guys have way more experience with the code base, so I'll defer to your judgment on this one. I'm just glad I found the issue. The other thing that tripped me up was having to add |
frantic
commented
Feb 5, 2016
It would be better to fix the original cause :) |
ffxsam
commented
Feb 5, 2016
Is it just a matter of editing this file and adding a reference to To be clear, I had to add this in order for the release version to build and run properly: |
frantic
commented
Feb 5, 2016
Yes, that's the right place |
facebook-github-bot
commented
Feb 12, 2016
@ffxsam updated the pull request. |
javache
commented
Feb 24, 2016
Pulling #6119 instead of this one. |

Feel free to reject this PR, though I'm removing this because it causes a total failing state without any clue to the developer as to what's going on. It just yields a cryptic error message:
I ran into this when I set my project to Release instead of Debug, and tried to test in Simulator. This held me up and prevented me from meeting a launch goal, which was really frustrating. As developers, we should have the choice of running a release copy on Simulator or a device, as a final check before publishing to the AppStore.