Edit Docs Making Offline iOS Bundle

Summary:
via commit 8c29a52c54 , the way has changed building offline bundle. So this commit update the docs about that.
Closes https://github.com/facebook/react-native/pull/9186

Differential Revision: D3682643

Pulled By: JoelMarcey

fbshipit-source-id: 3e4127ca0c00f254dc3464e73c1c2496c0710b85
This commit is contained in:
Nam Se Hyun 2016-08-07 09:14:36 -07:00 committed by Facebook Github Bot 2
parent df05311777
commit 20c6d11f84
1 changed files with 1 additions and 9 deletions

View File

@ -24,16 +24,8 @@ In Xcode, select your phone as build target and press "Build and run"
You have built a great app using React Native, and you are now itching to release it in the App Store. The process is the same as any other native iOS app, with some additional considerations to take into account.
### Disabling the developer menu
Building an app for distribution in the App Store requires using the `Release` scheme in Xcode. Apps built for `Release` will automatically disable the in-app developer menu. This will prevent your users from inadvertently accessing the menu in production.
### Using the offline bundle
Set up your app to load your JavaScript, images, and other static assets from its resource bundle rather than the development server. This way you can test the app independently of the development server, and will allow you to distribute the app to beta testers and submit the app to the App Store.
1. Open `ios/YourApp/AppDelegate.m`
2. Uncomment the line, `jsCodeLocation = [[NSBundle mainBundle] ...`
This way you can test the app independently of the development server, and will allow you to distribute the app to beta testers and submit the app to the App Store.
### App Transport Security