handles simulator where prefix is included

This commit is contained in:
Ole-Kristian Sunnarvik 2019-02-05 13:56:57 +01:00
Родитель 6c839455ba
Коммит 9a8c9596eb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -41,7 +41,7 @@ function findMatchingSimulator(simulators, simulatorString) {
var match; var match;
for (let version in devices) { for (let version in devices) {
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc) // 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; continue;
} }
if (simulatorVersion && !version.endsWith(simulatorVersion)) { if (simulatorVersion && !version.endsWith(simulatorVersion)) {