def simulator_device_type(self): device_type_identifier = self.get_option('device_type') if device_type_identifier: device_type = DeviceType.from_identifier(device_type_identifier) else: if self.architecture() == 'x86_64': device_type = DeviceType.from_name('iPhone 5s') else: device_type = DeviceType.from_name('iPhone 5') return device_type
def simulator_device_type(self): device_type_identifier = self.get_option("device_type") if device_type_identifier: device_type = DeviceType.from_identifier(device_type_identifier) else: if self.architecture() == "x86_64": device_type = DeviceType.from_name("iPhone 5s") else: device_type = DeviceType.from_name("iPhone 5") return device_type
def simulator_device_type(self): device_type_identifier = self.get_option('device_type') if device_type_identifier: _log.debug('simulator_device_type for device identifier %s', device_type_identifier) device_type = DeviceType.from_identifier(device_type_identifier) else: _log.debug('simulator_device_type for device %s', self._device_class) device_name = self.DEVICE_CLASS_MAP[self.architecture()][self._device_class] if not device_name: raise Exception('Failed to find device for architecture {} and device class {}'.format(self.architecture()), self._device_class) device_type = DeviceType.from_name(device_name) return device_type