如何使用Rubymotion命令行启动不同的模拟器

时间:2021-09-01 20:44:40

In Rubymotion we start terminal with rake

在Rubymotion中,我们用耙子开始终端

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 ?

默认情况下,它启动iPhoneSimulator-6.0-Development。如何启动iPhone 5.1或5.0模拟器?

2 个解决方案

#1


13  

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

您应该能够通过rake命令设置目标,例如:

$ rake target=5.1 # => iOS 5.1

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

在此拉取请求中注意到:https://github.com/HipByte/RubyMotion/pull/10

#2


2  

To change the target device and OS try this:

要更改目标设备和OS,请尝试以下操作:

bundle exec rake target=8.4 device_name="iPad 2"

#1


13  

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

您应该能够通过rake命令设置目标,例如:

$ rake target=5.1 # => iOS 5.1

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

在此拉取请求中注意到:https://github.com/HipByte/RubyMotion/pull/10

#2


2  

To change the target device and OS try this:

要更改目标设备和OS,请尝试以下操作:

bundle exec rake target=8.4 device_name="iPad 2"