I'm using React-Native, when I run the AwesomeProject with Xcode and iPhone simulator everything works well, but when I connected my iPad and built the project on my iPad I receive an error on the iPad when the app starts:
"Could not connect to development server. Ensure node server is
running. The operation couldn't be completed (NSURLErrorDomain error
On your AppDelegate.m you have to update the
jsCodeLocation and replace
localhost with your machine ip address.
Either that or bundle the compiled source into your application, which is commented as option 2 on
AppDelegate.m as well. You download the compiled code, and add it to your Xcode project.