Skip to content

Commit b091490

Browse files
committed
Respect --device <id> option
1 parent a84c11a commit b091490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/iphone-simulator-xcode-simctl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
187187
}
188188

189189
if (options.device && !sdkVersion) {
190-
return device.name === options.device;
190+
return device.name === options.device || device.id === options.device;
191191
}
192192

193193
if (options.device && sdkVersion) {
194-
return device.runtimeVersion === sdkVersion && device.name === options.device;
194+
return device.runtimeVersion === sdkVersion && (device.name === options.device || device.id === options.device);
195195
}
196196

197197
if (!sdkVersion && !options.device) {

0 commit comments

Comments
 (0)