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 @@ -149,19 +149,19 @@ export class XCodeSimctlSimulator extends IPhoneSimulatorNameGetter implements I
149
149
device = device || this . getDeviceToRun ( ) ;
150
150
if ( ! this . isDeviceBooted ( device ) ) {
151
151
let bootedDevice = this . getBootedDevice ( ) ;
152
- if ( bootedDevice && bootedDevice . id !== device . id ) {
153
- this . killSimulator ( ) ;
152
+ if ( bootedDevice && bootedDevice . id !== device . id ) {
153
+ this . killSimulator ( ) ;
154
154
}
155
155
156
156
common . startSimulator ( device . id ) ;
157
157
// startSimulaltor doesn't always finish immediately, and the subsequent
158
158
// install fails since the simulator is not running.
159
159
// Give it some time to start before we attempt installing.
160
- utils . sleep ( 1000 ) ;
160
+ utils . sleep ( 1000 ) ;
161
161
}
162
162
}
163
-
164
- private killSimulator ( ) : Promise < any > {
163
+
164
+ private killSimulator ( ) : void {
165
165
childProcess . execSync ( "pkill -9 -f Simulator" ) ;
166
166
}
167
167
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ios-sim-portable" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.0.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