def simulator_runtime(self): runtime_identifier = self.get_option('runtime') if runtime_identifier: runtime = Runtime.from_identifier(runtime_identifier) else: runtime = Runtime.from_version_string(self.host.platform.xcode_sdk_version('iphonesimulator')) return runtime
def ios_version(self): runtime_identifier = self.get_option('runtime') if self.get_option('version'): return Version(self.get_option('version')) if runtime_identifier: return Version(Runtime.from_identifier(runtime_identifier).version) return Version(self.host.platform.xcode_sdk_version('iphonesimulator'))
def ios_version(self): # FIXME: We should replace --runtime with something which makes sense for both Simulator and Device # https://bugs.webkit.org/show_bug.cgi?id=173775 runtime_identifier = self.get_option('runtime') if runtime_identifier: return '.'.join( str(i) for i in Runtime.from_identifier(runtime_identifier).version) return self.host.platform.xcode_sdk_version('iphonesimulator')
def ios_version(self): runtime_identifier = self.get_option('runtime') if self.get_option('version'): return Version.from_string(self.get_option('version')) if runtime_identifier: return Runtime.from_identifier(runtime_identifier).version return IOSSimulatorPort._version_from_name( self._name) if IOSSimulatorPort._version_from_name( self._name) else self.host.platform.xcode_sdk_version( 'iphonesimulator')