Skip to content

Commit d3c6fc6

Browse files
authored
Verify device passed as option
Fixes this NativeScript/nativescript-cli#3625
1 parent 56e3abb commit d3c6fc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/iphone-simulator-xcode-simctl.ts

+4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
192192
}
193193

194194
public startSimulator(options: IOptions, device?: IDevice): void {
195+
if (!device && options.device) {
196+
this.verifyDevice(options.device);
197+
}
198+
195199
device = device || this.getDeviceToRun(options);
196200

197201
// In case the id is undefined, skip verification - we'll start default simulator.

0 commit comments

Comments
 (0)