Skip to content

Commit bb7fd11

Browse files
invigthymikee
authored andcommitted
fix: Add a simulator.isAvailable check for true value (#414)
* Add a simulator.isAvailable check for true Installing the Xcode 11 beta changes the result of isAvailable to `true` and `false`. * Fix lint error
1 parent c3b0d47 commit bb7fd11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli/src/commands/runIOS/findMatchingSimulator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function findMatchingSimulator(simulators, simulatorString) {
6161
// Skipping non-available simulator
6262
if (
6363
simulator.availability !== '(available)' &&
64-
simulator.isAvailable !== 'YES'
64+
simulator.isAvailable !== 'YES' &&
65+
simulator.isAvailable !== true
6566
) {
6667
continue;
6768
}

0 commit comments

Comments
 (0)