Skip to content

Commit 14d53cb

Browse files
author
Fatme
authored
Merge pull request #108 from telerik/fatme/verify-device-2
Verify device passed as option
2 parents b106265 + 870e30a commit 14d53cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/iphone-simulator-xcode-simctl.ts

Lines changed: 4 additions & 0 deletions
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)