File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
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
- if ( device . id ) {
238
+ if ( device && 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 ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ios-sim-portable" ,
3
- "version" : " 3.3.2 " ,
3
+ "version" : " 3.3.3 " ,
4
4
"description" : " " ,
5
5
"main" : " ./lib/ios-sim.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments