Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Question: readme #208

@tristangodfrey

Description

@tristangodfrey

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)

  1. Packager automatically started
  2. Packager doesn't receive any requests
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions