in lib/utils/utilities.js [104:121]
function getSimulatorCollection () {
if (simulatorCollection) return simulatorCollection;
// Next, figure out the ID of the simulator we found
const cmd = '(xcrun xctrace list devices || instruments -s devices) 2>&1 | grep ^iPhone';
logger.info('running:');
logger.info(' ' + cmd);
const cmdResult = exec(cmd);
if (cmdResult.code > 0) {
logger.error('Failed to get the list of simulators');
return false;
}
simulatorCollection = cmdResult.stdout.split('\n');
return simulatorCollection;
}