简体   繁体   English

在iOS 3.0中测试iPhone应用程序

[英]Testing iPhone apps in iOS 3.0

Officially Apple let developers deploy apps that's compatible with iOS 3.0 to iOS 4.2. 苹果正式允许开发人员将与iOS 3.0兼容的应用程序部署到iOS 4.2。 However there are some APIs and some hardware features that's not present in some devices or in some iOS versions. 但是,某些设备或某些iOS版本中没有某些API和某些硬件功能。

However if you only have one testing device, and you want to try to install a clean iOS 3.0 to that, for testing purposes, what is the official way to do it? 但是,如果您只有一台测试设备,并且想要尝试在该设备上安装干净的iOS 3.0,出于测试目的,什么是官方的方法? I tried looking all over Apple developer website and it does not give me anything. 我尝试遍历整个Apple开发人员网站,但没有任何帮助。

I asked a similar question before: A TimeMachine taking my iDevice back to 3.1.2? 我之前曾问过类似的问题: 一个TimeMachine是否将我的iDevice恢复到3.1.2?

After that I did a thorough research on this topic. 之后,我对该主题进行了深入研究。 It finally turned out, that actually there is no official way for a developer to downgrade her or his own device back to an earlier iOS. 最终结果表明,开发人员实际上并没有官方的方式将其自己的设备降级到较早的iOS。 Apple just doesn't allow that to happen. 苹果只是不允许这种情况发生。

However, in your code, there are many things you can do to make sure your app is supported in an old version iOS. 但是,在您的代码中,您可以执行许多操作来确保旧版本的iOS支持您的应用。 Check this great post: http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html 检查此精彩文章: http : //cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html

If testing on the iOS Simulator is enough, you can achieve that by installing previous versions of the SDK which contains the older versions of iOS. 如果在iOS Simulator上进行测试就足够了,则可以通过安装包含旧版iOS的SDK的早期版本来实现。

As for device, there is no quick way to switch between iOS versions on a single device. 对于设备,没有快速的方法可以在单个设备上的iOS版本之间进行切换。

I struggled with this for a while, and eventually gave up on downgrading and bought a used 1st gen iPod Touch, which can't be upgraded to 4.x so it's guaranteed to be 2.x or 3.x (2.x is easily upgraded to 3.x). 我为此苦苦挣扎了一段时间,最终放弃了降级,买了一个二手的第一代iPod Touch,它无法升级到4.x,因此可以保证是2.x或3.x(2.x是轻松升级到3.x)。

Now I test on that. 现在,我对此进行测试。 Added benefit is that when testing on it you're at the same time checking the performance on a slower (slowest?) iOS device too. 额外的好处是,在对其进行测试时,您同时也在较慢(最慢)的iOS设备上检查性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM