Skip to content

Commit

Permalink
Update default iOS simulator and fallback (react-native-community#1306)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Nguy <[email protected]>
  • Loading branch information
kevinnguy and Kevin Nguy authored Nov 18, 2020
1 parent c817bd3 commit 67fb57b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/platform-ios/src/commands/runIOS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ async function runOnSimulator(

/**
* If provided simulator does not exist, try simulators in following order
* - iPhone 11
* - iPhone X
* - iPhone 8
*/
const fallbackSimulators = ['iPhone X', 'iPhone 8'];
const fallbackSimulators = ['iPhone 11', 'iPhone X', 'iPhone 8'];
const selectedSimulator = fallbackSimulators.reduce((simulator, fallback) => {
return (
simulator || findMatchingSimulator(simulators, {simulator: fallback})
Expand Down Expand Up @@ -560,7 +561,7 @@ export default {
description:
'Explicitly set simulator to use. Optionally include iOS version between ' +
'parenthesis at the end to match an exact version: "iPhone 6 (10.0)"',
default: 'iPhone 11',
default: 'iPhone 12',
},
{
name: '--configuration [string]',
Expand Down

0 comments on commit 67fb57b

Please sign in to comment.