File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,20 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
97
97
// Ignore the error.
98
98
}
99
99
100
+ let resultOfTermination : string ;
100
101
if ( xcodeMajorVersion && xcodeMajorVersion < 8 ) {
101
102
// Xcode 7.x does not have support for `xcrun simctl terminate` command
102
- const resultOfKill = childProcess . execSync ( `killall ${ bundleExecutable } ` , { skipError : true } ) ;
103
- // killall command does not terminate the processes immediately and we have to wait a little bit,
104
- // just to ensure all related processes and services are dead.
105
- utils . sleep ( 0.5 ) ;
106
- return resultOfKill ;
103
+ resultOfTermination = childProcess . execSync ( `killall ${ bundleExecutable } ` , { skipError : true } ) ;
107
104
} else {
108
- return this . simctl . terminate ( deviceId , appIdentifier ) ;
105
+ resultOfTermination = this . simctl . terminate ( deviceId , appIdentifier ) ;
109
106
}
107
+
108
+ // killall command does not terminate the processes immediately and we have to wait a little bit,
109
+ // just to ensure all related processes and services are dead.
110
+ // Same is valid for simctl terminate when Simulator's OS version is below 10.
111
+ utils . sleep ( 0.5 ) ;
112
+
113
+ return resultOfTermination ;
110
114
} catch ( e ) {
111
115
}
112
116
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ios-sim-portable" ,
3
- "version" : " 3.1.1 " ,
3
+ "version" : " 3.1.2 " ,
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