Skip to content
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

App fails to build in Simulator when using js.bundle #920

Closed
aaronschachter opened this issue Mar 7, 2016 · 3 comments
Closed

App fails to build in Simulator when using js.bundle #920

aaronschachter opened this issue Mar 7, 2016 · 3 comments

Comments

@aaronschachter
Copy link
Contributor

Not a blocker, as it works when we build to a physical device (and can then archive) -- but something worth cleaning up. Refs facebook/react-native#5770

2016-03-07 09:22:08.433 DoSomething[1436:91544] *** Terminating app due to uncaught exception 'RCTFatalException: Unable to execute JS call: __fbBatchedBridge is undefined', reason: 'Unable to execute JS call: __fbBatchedBridge is undefined'

@kxxoling
Copy link

+1, this is found when I comment the line jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; and use jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; instead and set Production to Release. But this would happen even I change Production back to product.

@kxxoling
Copy link

Debug mode works fine on real machine, seems it was something wrong with production specific settings.

@aaronschachter
Copy link
Contributor Author

Upgrading to RN 0.22, I get this error when running on my Debug scheme but not on Release. I'm curious if this relates to my package.json looking like this:

 "bin": {
    "react-native": "local-cli/wrong-react-native.js"
  },`

Ability to run bundle from Simulator on Release feels like reason enough to close this to clear out some of these minor issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants