Skip to content

Commit 84c8504

Browse files
committed
fix: boot device by id when there's already a device running
1 parent c2befef commit 84c8504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iphone-simulator-xcode-simctl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export class XCodeSimctlSimulator
367367

368368
if (isSimulatorAppRunning) {
369369
// In case user closes simulator window but simulator app is still alive
370-
if (!haveBootedDevices) {
370+
if (!haveBootedDevices || !device) {
371371
device = await this.getDeviceToRun(options);
372372
}
373373
this.simctl.boot(device.id);

0 commit comments

Comments
 (0)