Skip to content

Commit

Permalink
handles simulator where prefix is included
Browse files Browse the repository at this point in the history
  • Loading branch information
osunnarvik committed Feb 5, 2019
1 parent 6c83945 commit 9a8c959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cli/runIOS/findMatchingSimulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function findMatchingSimulator(simulators, simulatorString) {
var match;
for (let version in devices) {
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
if (!version.includes('iOS') && !version.includes('tvOS')) {
continue;
}
if (simulatorVersion && !version.endsWith(simulatorVersion)) {
Expand Down

0 comments on commit 9a8c959

Please sign in to comment.