React-native: iOS Release Build Instructions Out of Date

Created on 11 Aug 2016  路  4Comments  路  Source: facebook/react-native

Documentation on how to build a release for production鈥攐r even how to get an app to run without the development server鈥攕eem out of date. It would also be useful for it to be completely beginner friendly: stuff like development schemes aren鈥檛 too obvious if you haven鈥檛 done it before!

I would be happy to add to the documentation. However, I have no idea how to get a build that doesn鈥檛 use the development server.

Ran Commands Locked

Most helpful comment

It does seem that the latest version of the project setup does not generate the line mentioned under the "Using the offline bundle" subheading of the Documentation page.
Try substituting the jsCodeLocation line in the AppDelegate.m to
"jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];"
During the build, a "main.jsbundle" is put into the app package. That's what this line of code will try to find.

All 4 comments

It does seem that the latest version of the project setup does not generate the line mentioned under the "Using the offline bundle" subheading of the Documentation page.
Try substituting the jsCodeLocation line in the AppDelegate.m to
"jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];"
During the build, a "main.jsbundle" is put into the app package. That's what this line of code will try to find.

@facebook-github-bot label Documentation

Looking into this a bit more. The "Running on Device iOS" page for React Native 0.31 should have had the same instructions as the current master.
Would it be worth adding explicit instructions about clicking on the project name in the toolbar in XCode to expose the "Edit Scheme" options and selecting release for the build configuration?

It looks like this doc has been fixed. Thanks for bringing this to our attention!

https://github.com/facebook/react-native/commits/master/docs/RunningOnDeviceIOS.md

Was this page helpful?
0 / 5 - 0 ratings