From ab64919e5a2899f3d9bb1f92774f328f81a44709 Mon Sep 17 00:00:00 2001 From: jgreen01su Date: Wed, 10 Apr 2019 15:06:11 -0700 Subject: [PATCH] Starts simulator when prefix is included - Replace `startsWith` with `includes` --- 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 1928d6ff9f3e50..82a862d304fb83 100644 --- a/local-cli/runIOS/findMatchingSimulator.js +++ b/local-cli/runIOS/findMatchingSimulator.js @@ -39,7 +39,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)) {