handles simulator where prefix is included

This commit is contained in:
Ole-Kristian Sunnarvik
2019-02-05 13:56:57 +01:00
parent 6c839455ba
commit 9a8c9596eb
+1 -1
View File
@@ -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)) {