From 9a8c9596ebe41e27d37ba18d6bf09f1c931c1ff2 Mon Sep 17 00:00:00 2001 From: Ole-Kristian Sunnarvik Date: Tue, 5 Feb 2019 13:56:57 +0100 Subject: [PATCH] handles simulator where prefix is included --- local-cli/runIOS/findMatchingSimulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runIOS/findMatchingSimulator.js b/local-cli/runIOS/findMatchingSimulator.js index 30e2156d421f..606d72adcbb7 100644 --- a/local-cli/runIOS/findMatchingSimulator.js +++ b/local-cli/runIOS/findMatchingSimulator.js @@ -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)) {