Skip to content

Commit

Permalink
debug simulators shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 11, 2024
1 parent 1fd38d7 commit 2517795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/simulator-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,11 @@ export async function shutdownOtherSimulators() {
devicesSetPath: device.devicesSetPath,
});
const allDevices = _.flatMap(_.values(await simctl.getDevices()));
this.log.debug(`>>> allDevices: ${JSON.stringify(allDevices, null, 2)}`);
const otherBootedDevices = allDevices.filter(
(device) => device.udid !== device.udid && device.state === 'Booted',
);
this.log.debug(`>>> otherBootedDevices: ${JSON.stringify(otherBootedDevices, null, 2)}`);
if (_.isEmpty(otherBootedDevices)) {
this.log.info('No other running simulators have been detected');
return;
Expand Down

0 comments on commit 2517795

Please sign in to comment.