Skip to content

Commit

Permalink
fix: Finding first ios simulator (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Sep 15, 2023
1 parent 65905f9 commit 1f5c34b
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 1f5c34b

Please sign in to comment.