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.
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/run_loop/core.rb', line 475 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)" elsif xcode.version_gte_6? "iPhone 5s (8.0 Simulator)" else "iPhone Retina (4-inch) - Simulator - iOS 7.1" end end |