-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
If anyone wants to improve on these instructions and add them to the docs, feel free, I can do it later if nobody else jumps on it - I just wanted to document it somewhere for now.
- Open
iOS/AppDelegate.m - Comment out
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; - Uncomment
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; - Start up the packager with
npm startand then runcurl http://localhost:8081/index.ios.bundle -o main.jsbundle- if this fails (as it did on my machine) add the--ipv4flag to the end of it. - In XCode, right click on your project directory and click
Add Files to "Project Name Here"- choose themain.jsbundlefile that you generated.
You can now run the app on a device (either via usb or TestFlight) without needing to have a server running.
mixophrygian, Griffosx, respectTheCode, Wu-Dong-Hui, dgilliam and 28 morematteocollinaggaabe, RigoOnRails, syahrulfathi, pt-br, xfya and 6 more
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.