-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
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:
|
@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 |
It would be better to fix the original cause :) |
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: |
Yes, that's the right place |
@ffxsam updated the pull request. |
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.