Method: RunLoop::Core.default_simulator
- Defined in:
- lib/run_loop/core.rb
.default_simulator(xcode = RunLoop::Xcode.new) ⇒ Object
Returns the a default simulator to target. This default needs to be one that installed by default in the current Xcode version.
For historical reasons, the most recent non-64b SDK should be used.
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/run_loop/core.rb', line 286 def self.default_simulator(xcode=RunLoop::Xcode.new) if xcode.version_gte_73? "iPhone 6s (9.3)" elsif xcode.version_gte_72? "iPhone 6s (9.2)" elsif xcode.version_gte_71? "iPhone 6s (9.1)" elsif xcode.version_gte_7? "iPhone 5s (9.0)" elsif xcode.version_gte_64? "iPhone 5s (8.4 Simulator)" elsif xcode.version_gte_63? "iPhone 5s (8.3 Simulator)" elsif xcode.version_gte_62? "iPhone 5s (8.2 Simulator)" elsif xcode.version_gte_61? "iPhone 5s (8.1 Simulator)" else "iPhone 5s (8.0 Simulator)" end end |