handles simulator where prefix is included
This commit is contained in:
Родитель
6c839455ba
Коммит
9a8c9596eb
|
@ -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)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче