From 04fe4d306603cc6ebc11fc3b7b2182d89b9ca8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20Arabac=C4=B1?= Date: Wed, 27 Jul 2022 11:45:11 +0300 Subject: [PATCH 1/2] [Documentation] iOS Simulator version&UDID --- docs/running-on-simulator-ios.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/running-on-simulator-ios.md b/docs/running-on-simulator-ios.md index 20c1f384cbe..4adf78ba887 100644 --- a/docs/running-on-simulator-ios.md +++ b/docs/running-on-simulator-ios.md @@ -9,6 +9,14 @@ Once you have your React Native project initialized, you can run `npx react-nati ## 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 13"`. If you wish to run your app on an iPhone SE (2nd generation), run `npx react-native run-ios --simulator="iPhone SE (2nd generation)"`. +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 13"`. If you wish to run your app on an iPhone SE (2nd generation), run `npx react-native run-ios --simulator='iPhone SE (2nd generation)'`. 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. + +### Specifying a version of device + +If you have multiple iOS versions installed, you also need to specify it's appropiate version. E.g. run `npx react-native run-ios --simulator='iPhone 13 Pro (15.5)'` in order to specify the iOS version. + +## Specifying an udid + +You can specify the device udid returned from `xcrun simctl list devices` command. E.g. run `npx react-native run-ios --udid='AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA'` From 7a2b57b82c1689bf491ab802926cdf9c91c0b29b Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Wed, 3 Aug 2022 15:21:21 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/running-on-simulator-ios.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/running-on-simulator-ios.md b/docs/running-on-simulator-ios.md index 4adf78ba887..5f99870ce42 100644 --- a/docs/running-on-simulator-ios.md +++ b/docs/running-on-simulator-ios.md @@ -17,6 +17,6 @@ The device names correspond to the list of devices available in Xcode. You can c If you have multiple iOS versions installed, you also need to specify it's appropiate version. E.g. run `npx react-native run-ios --simulator='iPhone 13 Pro (15.5)'` in order to specify the iOS version. -## Specifying an udid +## Specifying an UDID -You can specify the device udid returned from `xcrun simctl list devices` command. E.g. run `npx react-native run-ios --udid='AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA'` +You can specify the device UDID returned from `xcrun simctl list devices` command. E.g. run `npx react-native run-ios --udid='AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA'`.