Skip to content

Commit

Permalink
fix: Add a simulator.isAvailable check for true value (#414)
Browse files Browse the repository at this point in the history
* Add a simulator.isAvailable check for true

Installing the Xcode 11 beta changes the result of isAvailable to `true` and `false`.

* Fix lint error
  • Loading branch information
invig authored and thymikee committed Jun 5, 2019
1 parent 2b19fc8 commit 2f24a8c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function findMatchingSimulator(simulators, simulatorString) {
// Skipping non-available simulator
if (
simulator.availability !== '(available)' &&
simulator.isAvailable !== 'YES'
simulator.isAvailable !== 'YES' &&
simulator.isAvailable !== true
) {
continue;
}
Expand Down

0 comments on commit 2f24a8c

Please sign in to comment.