Xcode:iPod Touch 模拟器?
我想在 iPod touch 上测试我的应用程序。但在 Xcode 中我没有看到一个模拟器(我只看到了 iphone 3gs、iphone 4 和 ipad 的模拟器)。
你知道是否有办法运行 iPod touch 模拟器吗?
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).
Do you know if there's a way to run an ipod touch simulator?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只需使用 iPhone 模拟器即可。出于模拟目的,它是相同的。
Just use the iPhone simulator. For simulation purposes, it is the same.
为什么这很重要?模拟器此处并未模拟实际的硬件差异。例如,它不提供相机。 “iPhone”和“iPhone 4”之间的唯一区别是屏幕分辨率,事实上最新版本的模拟器甚至没有说“iPhone 4”,而是现在说“iPhone(Retina)”。同样,“iPhone”和“iPad”之间唯一真正的区别是屏幕尺寸和模拟器呈现的镀铬效果。
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.
我认为这是不可能的,这太糟糕了。我的应用程序根据用户的选择通过扬声器或接收器播放声音。但如果在 iPod 或 iPad 上,则没有接收器,并且不应向用户显示选择按钮。我可以检测 iPhone 和其他设备类型之间的差异,但无法模拟 iP[oa]d 上发生的情况。
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.