Skip to content

Commit

Permalink
fix: Finding first ios simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Sep 14, 2023
1 parent 65905f9 commit b5f0ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function getSimulatorModelId (cli, target) {
const matchingSimulators = allSimulators.filter(i => i.match(target));
if (!matchingSimulators.length) {
logger.warn('Unable to find requested simulator, falling back to the first available!');
return allSimulators.filter(i => i.match(/^iPhone/))[0].trim();
return allSimulators.filter(i => i.match(/iPhone/))[0].trim();
}
return matchingSimulators
.pop()
Expand Down

0 comments on commit b5f0ae2

Please sign in to comment.