Search code examples
rubyrubymotion

How can i start a different simulator with Rubymotion command line


In Rubymotion we start terminal with rake

Ankits-MacBook-Pro:Magic ankitgupta$ rake 
     Build ./build/iPhoneSimulator-6.0-Development
  Simulate ./build/iPhoneSimulator-6.0-Development/Magic.app
(main)>

By default it is starting iPhoneSimulator-6.0-Development . How can i start iPhone 5.1 or 5.0 Simulator ?


Solution

  • You should be able to set the target via the rake command, for example:

    $ rake target=5.1 # => iOS 5.1
    

    Noted in this pull request: https://github.com/HipByte/RubyMotion/pull/10