Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 833
AnkitG Avatar asked Dec 15 '12 18:12

AnkitG


2 Answers

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

like image 183
dwhite Avatar answered Oct 23 '22 07:10

dwhite


To change the target device and OS try this:

bundle exec rake target=8.4 device_name="iPad 2"
like image 40
user5611163 Avatar answered Oct 23 '22 08:10

user5611163