"Invariant Violation: Application AwesomeProject has not been registered" When building for iOS device with static jsbundle

I'm pretty sure @krazyeom's fix has nothing to do with this error. In my case, I fixed this by quitting the terminal that was running from a previous test app I had run. It seems the terminal was confused and was still hooked to a process whose project was no longer loaded in XCode. Try the following:

  1. Shut the Terminal spawned by React Native.
  2. Shut down XCode completely (may not be necessary).
  3. Re-open everything and re-run.

Your problem shouldn't have anything to do with the console, if you properly bundled your javascript into the ios app it wont be trying to talk to dev server, it'll just get the javascript from the bundle.

From the error message I'd guess that you might have renamed your main component. Be sure that the 'AppName' you pass into the

AppRegistry.registerComponent('AppName' /* <- */, ... )

matches with the @"AppName" on your AppDelegate.m on the call for

[[RCTRootView alloc] initWithBundleUrl:...
                            moduleName:@"AppName" // <-
                         launchOptions:...

It is because the react-native server is still watching the old one. You need to shut the server down first.

You could just kill the process.

In terminal

ps aux | grep react

Kill or pkill the process and then

npm start