From ad9459c60f748f20a463b8c6b8a85abda81769bd Mon Sep 17 00:00:00 2001 From: Joel Cloralt Date: Mon, 13 Jun 2016 10:19:25 +0900 Subject: [PATCH 1/4] Add docs to show how to select specific simulator. Add a message to let people know they can use the `--simulator` flag to run their apps on different simulators instead of the default "iPhone 6" --- docs/QuickStart-GettingStarted.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/QuickStart-GettingStarted.md b/docs/QuickStart-GettingStarted.md index 249296abf0e91f..2c793ce55c3a7a 100644 --- a/docs/QuickStart-GettingStarted.md +++ b/docs/QuickStart-GettingStarted.md @@ -195,6 +195,10 @@ react-native run-ios If everything is set up correctly, you should see your new app running in the iOS Simulator shortly. +> You can specify the device the simulator should run with the `--simulator` flag, followed by the device name as a string. The default is `"iPhone 6"`. Example: `react-natvie run-ios --simulator "iPhone 4s"`. +> The device names corresponds to the list of devices available in xcode. You can check your available devices by running `xcrun simctl list devices` from the console. + + > You can also > [open the `AwesomeProject`](http://nuclide.io/docs/quick-start/getting-started/#adding-a-project) > folder in [Nuclide](http://nuclide.io) and From 03ee1de4190298240b8fa3866e6f2b4c4659acbe Mon Sep 17 00:00:00 2001 From: Joel Cloralt Date: Fri, 17 Jun 2016 13:38:23 +0900 Subject: [PATCH 2/4] remove simulator flag from getting started and create a new guide under iOS --- docs/QuickStart-GettingStarted.md | 3 --- docs/RunningOnSimulatorIOS.md | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 docs/RunningOnSimulatorIOS.md diff --git a/docs/QuickStart-GettingStarted.md b/docs/QuickStart-GettingStarted.md index 2c793ce55c3a7a..e3b89088d64c53 100644 --- a/docs/QuickStart-GettingStarted.md +++ b/docs/QuickStart-GettingStarted.md @@ -195,9 +195,6 @@ react-native run-ios If everything is set up correctly, you should see your new app running in the iOS Simulator shortly. -> You can specify the device the simulator should run with the `--simulator` flag, followed by the device name as a string. The default is `"iPhone 6"`. Example: `react-natvie run-ios --simulator "iPhone 4s"`. -> The device names corresponds to the list of devices available in xcode. You can check your available devices by running `xcrun simctl list devices` from the console. - > You can also > [open the `AwesomeProject`](http://nuclide.io/docs/quick-start/getting-started/#adding-a-project) diff --git a/docs/RunningOnSimulatorIOS.md b/docs/RunningOnSimulatorIOS.md new file mode 100644 index 00000000000000..3746ddb5cd16be --- /dev/null +++ b/docs/RunningOnSimulatorIOS.md @@ -0,0 +1,18 @@ +--- +id: running-on-simulator-ios +title: Running On Simulator +layout: docs +category: Guides (iOS) +permalink: docs/running-on-simulator-ios.html +next: communication-ios +--- + +## Starting the simulator + +Once you have your React Native project initialized, you can run `react-native run-ios` inside the newly created project directory. If everything is set up correctly, you should see your new app running in the iOS Simulator shortly. + +## Specifying a device + +You can specify the device the simulator should run with the `--simulator` flag, followed by the device name as a string. The default is `"iPhone 6"`. If you wish to run your app on an iPhone 4s, just run `react-native run-ios --simulator "iPhone 4s"`. + +The device names correspond to the list of devices available in Xcode. You can check your available devices by running `xcrun simctl list devices` from the console. From 20adabfc885930eee6f7a0912c0796f7d4eb32e8 Mon Sep 17 00:00:00 2001 From: Joel Cloralt Date: Fri, 17 Jun 2016 14:32:42 +0900 Subject: [PATCH 3/4] Fix next link in navigation --- docs/RunningOnDeviceIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/RunningOnDeviceIOS.md b/docs/RunningOnDeviceIOS.md index 1a9faeac514fb4..59e2a50ac7be8b 100644 --- a/docs/RunningOnDeviceIOS.md +++ b/docs/RunningOnDeviceIOS.md @@ -4,7 +4,7 @@ title: Running On Device layout: docs category: Guides (iOS) permalink: docs/running-on-device-ios.html -next: communication-ios +next: running-on-simulator-ios --- Note that running on device requires [Apple Developer account](https://developer.apple.com/register) and provisioning your iPhone. This guide covers only React Native specific topic. From 4872d0db1ca9d99ecf6b9af37543ad2b9c0fd6db Mon Sep 17 00:00:00 2001 From: Joel Cloralt Date: Sat, 18 Jun 2016 07:01:10 +0900 Subject: [PATCH 4/4] remove additional space --- docs/QuickStart-GettingStarted.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/QuickStart-GettingStarted.md b/docs/QuickStart-GettingStarted.md index e3b89088d64c53..249296abf0e91f 100644 --- a/docs/QuickStart-GettingStarted.md +++ b/docs/QuickStart-GettingStarted.md @@ -195,7 +195,6 @@ react-native run-ios If everything is set up correctly, you should see your new app running in the iOS Simulator shortly. - > You can also > [open the `AwesomeProject`](http://nuclide.io/docs/quick-start/getting-started/#adding-a-project) > folder in [Nuclide](http://nuclide.io) and