-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Question: readme #208
Description
Sorry for being nitpicky again!
The following part of the documentation:
Once your app has been configured and distributed to your users, and you've made some JS changes, it's time to release it to them instantly!
How do we get to the point of our app being configured if we have already set up CodePush?
If I follow the original react-native documentation it tells me to uncomment jsCodeLocation = [[NSBundle mainBundle] and then when I run the build it will write the JS bundle to my app somewhere.
If I've already configured CodePush on my app before ever building an offline bundle, will the behaviour be the same? Or should I manually place the bundle in my project?
So instead of just being lazy and posting the question I decided to test it out.
react-native: 0.20.0
react-native-code-push: ^1.7.3-beta
I've never compiled the app with a bundle, and build + running it in xCode resulted in the following:
(first set schema to production, then build + run)
- Packager automatically started
- Packager doesn't receive any requests
- App crashes:
terminating with uncaught exception of type NSException
points to this loop:
// run the run loop
while (kCFRunLoopRunStopped != CFRunLoopRunInMode(kCFRunLoopDefaultMode, ((NSDate *)[NSDate distantFuture]).timeIntervalSinceReferenceDate, NO)) {
RCTAssert(NO, @"not reached assertion"); // runloop spun. that's bad.
}
Not sure if this counts as a bug or not, but it might be convenient to allow usage of CodePush without having manually bundled, or having ran the original react-native code (jsCodeLocation = [[NSBundle mainBundle]) first.
I hope this makes sense and doesn't look too messy, beginner developer here.