使用RubyMotion选择iOS模拟器设备类型 [英] Selecting the iOS Simulator device type with RubyMotion

查看:158
本文介绍了使用RubyMotion选择iOS模拟器设备类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自iOS 8发布以来,模拟器的默认设备类型变为iPhone 6.即使我在下次启动时使用硬件>设备菜单手动更改设备类型(使用 rake模拟器)模拟器将恢复为iPhone 6。

Since iOS 8 was released the default device type for simulator became iPhone 6. And even if I manually change the device type using Hardware > Device menu, on the next launch (using rake simulator) the simulator will revert to iPhone 6.

我想知道是否有任何rake选项或其他一些强制设备类型的设置。

I wonder if there is any rake options, or some other settings to force the device type.

PS。我知道有一些方法可以强制使用非视网膜iPhone和一种方式来启动iPad模拟器而不是iPhone模拟器,但我有兴趣在5/6/6 +之间进行选择。

PS. I know that there are ways to force a non-retina iPhone and a way to launch the iPad simulator instead of the iPhone one, but I'm interested in selecting between 5/6/6+.

谢谢

推荐答案

运行 /Applications/Xcode.app/Contents/Developer / usr / bin / simctl list (或 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl list 旧版Xcode。

Run /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list (or /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl list for older versions of Xcode.

显示你的模拟器
以下是我的模拟器设备

show your simulators following is my simulator devices

==设备==
- iOS 7.0 -
- iOS 7.1 -
iPhone 5s(971DB3D4-7FF4-4005-A11D-11541ED79193) (关机)
- iOS 8.0 -
iPhone 5s(EE64F798-6CB9-40B1-8B19-30727C3CA538)(关机)
iPhone 6 Plus(D9F2BEEE-D341-4080-8A49-24AB6FACD9D9 )(关机)
iPhone 6(81229508-4D35-4BEE-B616-FB99FDC6BCDD)(已启动)
iPad 2(F2484155-E4A2-44E9-A113-AAF4B9A83717)(关机)
可调整大小的iPhone(B762046B-1273-4638-B0ED-A7827A822BDD)(关机)
可调整大小的iPad(AACAB77A-12BD-43F3-A847-3D11575F3BF3)(关机)

如果您想将iPhone 5s作为IOS 7.1运行(您必须设置app.deployment_target ='7.1'),您可以这样做喜欢

rake device_name =iPhone 5s(971DB3D4-7FF4-4005-A11D-11541ED79193)

if you want run iPhone 5s as IOS 7.1 (You must set app.deployment_target = '7.1'),you can do it like
rake device_name="iPhone 5s (971DB3D4-7FF4-4005-A11D-11541ED79193)"

这篇关于使用RubyMotion选择iOS模拟器设备类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆