adade64cda7af2bb2f23b95a57f91f7010aa0cb8

Author
Ibrahim Almuqrin <ialmoqren@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

react-native: use new iOS simulator names (#7717)

The simulator names changed after updating to Xcode 10.2 (iOS 12.2 SDK)
I don't know how to prevent this change from affecting those who didn't update yet, but it worth noting that updating is now required in order to submit iOS apps to the App Store.

Diff

 1diff --git a/plugins/react-native/README.md b/plugins/react-native/README.md
 2index 0cfaa36b4a0ae1b68adb85c2451d7278b787143e..2cf7d2d191ceacf597068ff317a52bed9f2d4d2f 100644
 3--- a/plugins/react-native/README.md
 4+++ b/plugins/react-native/README.md
 5@@ -24,28 +24,28 @@ plugins=(... react-native)
 6 | **rnios5s**    | `react-native run-ios --simulator "iPhone 5s"`                               |
 7 | **rnios6**     | `react-native run-ios --simulator "iPhone 6"`                                |
 8 | **rnios6s**    | `react-native run-ios --simulator "iPhone 6s"`                               |
 9-| **rnios7**     | `react-native run-ios --simulator "iPhone7"`                                 |
10+| **rnios7**     | `react-native run-ios --simulator "iPhone 7"`                                |
11 | **rnios7p**    | `react-native run-ios --simulator "iPhone 7 Plus"`                           |
12 | **rnios8**     | `react-native run-ios --simulator "iPhone 8"`                                |
13 | **rnios8p**    | `react-native run-ios --simulator "iPhone 8 Plus"`                           |
14 | **rniosse**    | `react-native run-ios --simulator "iPhone SE"`                               |
15 | **rniosx**     | `react-native run-ios --simulator "iPhone X"`                                |
16-| **rniosxs**    | `react-native run-ios --simulator "iPhone XS"`                               |
17-| **rniosxsm**   | `react-native run-ios --simulator "iPhone XS Max"`                           |
18-| **rniosxr**    | `react-native run-ios --simulator "iPhone XR"`                               |
19+| **rniosxs**    | `react-native run-ios --simulator "iPhone Xs"`                               |
20+| **rniosxsm**   | `react-native run-ios --simulator "iPhone Xs Max"`                           |
21+| **rniosxr**    | `react-native run-ios --simulator "iPhone Xʀ"`                               |
22 | _iPads_        |                                                                              |
23 | **rnipad2**    | `react-native run-ios --simulator "iPad 2"`                                  |
24 | **rnipadr**    | `react-native run-ios --simulator "iPad Retina"`                             |
25-| **rnipada**    | 'react-native run-ios --simulator "iPad Air"'                                |
26-| **rnipada2**   | 'react-native run-ios --simulator "iPad Air 2"'                              |
27-| **rnipad5**    | 'react-native run-ios --simulator "iPad (5th generation)"'                   |
28-| **rnipad9**    | 'react-native run-ios --simulator "iPad Pro (9.7-inch)"'                     |
29-| **rnipad12**   | 'react-native run-ios --simulator "iPad Pro (12.9-inch)"'                    |
30-| **rnipad122**  | 'react-native run-ios --simulator "iPad Pro (12.9-inch) (2nd generation)"'   |
31-| **rnipad10**   | 'react-native run-ios --simulator "iPad Pro (10.5-inch)"'                    |
32-| **rnipad6**    | 'react-native run-ios --simulator "iPad Pro (6th generation)"'               |
33-| **rnipad11**   | 'react-native run-ios --simulator "iPad Pro (11-inch)"'                      |
34-| **rnipad123**  | 'react-native run-ios --simulator "iPad Pro (12.9-inch) (3rd generation)"'   |
35+| **rnipada**    | `react-native run-ios --simulator "iPad Air"`                                |
36+| **rnipada2**   | `react-native run-ios --simulator "iPad Air 2"`                              |
37+| **rnipad5**    | `react-native run-ios --simulator "iPad (5th generation)"`                   |
38+| **rnipad9**    | `react-native run-ios --simulator "iPad Pro (9.7-inch)"`                     |
39+| **rnipad12**   | `react-native run-ios --simulator "iPad Pro (12.9-inch)"`                    |
40+| **rnipad122**  | `react-native run-ios --simulator "iPad Pro (12.9-inch) (2nd generation)"`   |
41+| **rnipad10**   | `react-native run-ios --simulator "iPad Pro (10.5-inch)"`                    |
42+| **rnipad6**    | `react-native run-ios --simulator "iPad Pro (6th generation)"`               |
43+| **rnipad11**   | `react-native run-ios --simulator "iPad Pro (11-inch)"`                      |
44+| **rnipad123**  | `react-native run-ios --simulator "iPad Pro (12.9-inch) (3rd generation)"`   |
45 | _Apple TVs_    |                                                                              |
46 | **rnatv**      | `react-native run-ios --simulator "Apple TV"`                                |
47 | **rnatv4k**    | `react-native run-ios --simulator "Apple TV 4K"`                             |
48diff --git a/plugins/react-native/react-native.plugin.zsh b/plugins/react-native/react-native.plugin.zsh
49index a4092a6949880920ba115c13fef69859e867e164..f3ef09124060d444ce1eaf4fad91bb18efe4e674 100644
50--- a/plugins/react-native/react-native.plugin.zsh
51+++ b/plugins/react-native/react-native.plugin.zsh
52@@ -15,9 +15,9 @@ alias rnios8='react-native run-ios --simulator "iPhone 8"'
53 alias rnios8p='react-native run-ios --simulator "iPhone 8 Plus"'
54 alias rniosse='react-native run-ios --simulator "iPhone SE"'
55 alias rniosx='react-native run-ios --simulator "iPhone X"'
56-alias rniosxs='react-native run-ios --simulator "iPhone XS"'
57-alias rniosxsm='react-native run-ios --simulator "iPhone XS Max"'
58-alias rniosxr='react-native run-ios --simulator "iPhone XR"'
59+alias rniosxs='react-native run-ios --simulator "iPhone Xs"'
60+alias rniosxsm='react-native run-ios --simulator "iPhone Xs Max"'
61+alias rniosxr='react-native run-ios --simulator "iPhone Xʀ"'
62 
63 alias rnipad2='react-native run-ios --simulator "iPad 2"'
64 alias rnipadr='react-native run-ios --simulator "iPad Retina"'