File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,15 +234,15 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
234
234
}
235
235
236
236
public startSimulator ( device ?: IDevice ) : void {
237
- if ( ! device || ! device . runtimeVersion || ! device . fullId ) {
238
- device = this . getDeviceToRun ( device ) ;
239
- }
240
-
241
237
// In case the id is undefined, skip verification - we'll start default simulator.
242
238
if ( device . id ) {
243
239
this . verifyDevice ( device ) ;
244
240
}
245
241
242
+ if ( ! device || ! device . runtimeVersion || ! device . fullId ) {
243
+ device = this . getDeviceToRun ( device ) ;
244
+ }
245
+
246
246
if ( ! this . isDeviceBooted ( device ) ) {
247
247
const isSimulatorAppRunning = this . isSimulatorAppRunning ( ) ;
248
248
const haveBootedDevices = this . haveBootedDevices ( ) ;
You can’t perform that action at this time.
0 commit comments