packages/platform-ios/src/commands/logIOS/index.js
async function logIOS() {
  const rawDevices = execFileSync(
    'xcrun',
    ['simctl', 'list', 'devices', '--json'],
    {encoding: 'utf8'},
  );

  const {devices} = JSON.parse(rawDevices);

  const device = findAvailableDevice(devices);
  if (device === undefined) {
    logger.error('No active iOS device found');
    return;
  }

  tailDeviceLogs(device.udid);
}
async function logIOS() {
  const rawDevices = execFileSync(
    'xcrun',
    ['simctl', 'list', 'devices', '--json'],
    {encoding: 'utf8'},
  );

  const {devices} = JSON.parse(rawDevices);

  const device = findAvailableDevice(devices);
  if (device === undefined) {
    logger.error('No active iOS device found');
    return;
  }

  tailDeviceLogs(device.udid);
}
async function logIOS ( ) { const rawDevices = execFileSync ( 'xcrun' , [ 'simctl' , 'list' , 'devices' , '--json' ] , { encoding : 'utf8' } , ) ; const { devices } = JSON . parse ( rawDevices ) ; const device = findAvailableDevice ( devices ) ; if ( device === undefined ) { logger . error ( 'No active iOS device found' ) ; return ; } tailDeviceLogs ( device . udid ) ; }
Starts iOS device syslog tail
Starts iOS device syslog tail