简体   繁体   English

在为较旧的SDK部署iOS应用时,如何测试它?

[英]when deploying an iOS app for an older SDK, how to test it?

I have written an app and its base SDK is set to 4.2, and at the moment it is in the app store with a deployment target set to 4.2, I'm sure you'll agree this is a bad idea because I am alienating all potential users who do not have the latest version of iOS installed. 我已经编写了一个应用程序,其基础SDK设置为4.2,目前它在应用程序商店中,部署目标设置为4.2,我相信你会同意这是一个坏主意,因为我疏远所有未安装最新版iOS的潜在用户。

So my question is, when deploying for an older version of iOS, how do I make sure it will run, ie how do I check whether I've used any modern API's that are not present in the deployment target iOS version? 所以我的问题是,在部署iOS版本的旧版本时,如何确保它能够运行,即如何检查我是否使用了部署目标iOS版本中不存在的任何现代API?

The only sure-fire way to make sure your app will run is to test on a device running the older OS version you specify. 确保您的应用程序运行的唯一可靠方法是在运行您指定的旧操作系统版本的设备上进行测试。

Even old versions of the iPhone Simulator (if you can find such) will not do a good job of checking for compatibility. 即使是旧版本的iPhone模拟器(如果你能找到的话)也不能很好地检查兼容性。

Most developers who want to support customers on iPhoneOS 3.x have access to an old test device, such as an used iPod Touch (hand-me-down, or purchased on eBay, etc.) running the OS version set in the app's Deployment Target. 希望在iPhoneOS 3.x上支持客户的大多数开发人员可以访问旧的测试设备,例如在应用程序的部署中运行操作系统版本的旧iPod Touch(手持式,或在eBay上购买等)目标。 Otherwise, the developer is just guessing/gambling. 否则,开发人员只是在猜测/赌博。

Check the documentation of the libraries or methods you are using. 检查您正在使用的库或方法的文档。 Test on the actually device installed with the version of the OS you wish to support. 测试与您希望支持的OS版本一起安装的实际设备。

Change the Base sdk version to 4.2, target sdk to 3.0 or any. 将Base sdk版本更改为4.2,将目标sdk更改为3.0或任何。 test the app in simulator as the target as simulator 3.0 r any. 测试模拟器中的应用程序作为模拟器3.0 r的目标。

But, when compared to 3.2 , 4.2 version has many new functionalities that do not work on 3.2 version devices. 但是,与3.2相比,4.2版本有许多新功能,不适用于3.2版本的设备。 So take respective steps to do for 3.2 r for 4.2. 因此,采取相应的步骤为3.2 r做4.2。

The better idea is to find the version of the device , then give the accessibility based on the version. 更好的想法是找到设备的版本,然后根据版本提供可访问性。

Thanks, Bharath 谢谢,巴拉特

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

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