Xcode:iPod Touch 模拟器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4039106/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode: iPod Touch Simulator?
提问by foreyez
I'd like to test my app on the ipod touch. But in Xcode I don't see a simulator for this (I only see a simulator for iphone 3gs, iphone 4, and ipad).
我想在 ipod touch 上测试我的应用程序。但是在 Xcode 中我没有看到这个模拟器(我只看到了 iphone 3gs、iphone 4 和 ipad 的模拟器)。
Do you know if there's a way to run an ipod touch simulator?
你知道有没有办法运行 ipod touch 模拟器?
回答by jer
Just use the iPhone simulator. For simulation purposes, it is the same.
只需使用 iPhone 模拟器。出于模拟目的,它是相同的。
回答by Lily Ballard
Why does it matter? The Simulator isn't simulating the actual hardware differences here. For example, it doesn't provide a camera. The only difference between "iPhone" and "iPhone 4" is the screen resolution, and in fact the most recent version of the simulator doesn't even say "iPhone 4", it now says "iPhone (Retina)". Similarly the only real difference between "iPhone" and "iPad" is the screen size and the chrome the simulator presents.
为什么这有关系?Simulator 并未模拟此处的实际硬件差异。例如,它不提供相机。“iPhone”和“iPhone 4”之间的唯一区别是屏幕分辨率,事实上,最新版本的模拟器甚至不说“iPhone 4”,而是说“iPhone (Retina)”。同样,“iPhone”和“iPad”之间唯一真正的区别是模拟器呈现的屏幕尺寸和镀铬。
回答by mcgyver42
I don't think it's possible, which is too bad. My app plays sound through the speaker or through the receiver based on user's choice. But if on an iPod or iPad, there is no receiver, and the choice button should not be presented to the user. I can detect the difference between an iPhone and other device types, but I can't simulate what happens on an iP[oa]d.
我不认为这是可能的,这太糟糕了。我的应用程序根据用户的选择通过扬声器或接收器播放声音。但如果在 iPod 或 iPad 上,没有接收器,则不应向用户显示选择按钮。我可以检测到 iPhone 和其他设备类型之间的差异,但我无法模拟 iP[oa]d 上发生的情况。