使用Xcode定位iOS级别以实现向后兼容性 [英] Target iOS Level with Xcode for Backward Compatability

查看:101
本文介绍了使用Xcode定位iOS级别以实现向后兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这里进行了搜索,并且没有找到我的问题的明确答案,所以我认为现在是时候发帖了。

I did a search here already, and haven't found a clear answer to my question, so I thought the time was right to post.

我有一个使用Xcode 3.2和SDK 4.2开发的iOS应用程序。当我构建捆绑包时,我针对的是iOS 3,因此运行旧款iPhone的人(比如我的妻子手上有iPhone 3及iOS 3.x)可以运行该应用程序。该应用程序也在最新的4.x iOS上进行了测试,运行良好。

I have an iOS application that was developed using Xcode 3.2 and SDK 4.2. When I built the bundle, I targeted iOS 3, so that people running older iPhones (like my wife who has iPhone 3 with iOS 3.x on it) can run the application. The app was also tested on, and runs fine with, the latest 4.x iOS.

随着iOS 5的发布,我想确保我的应用程序兼容。我的应用程序使用iOS 5中没有任何新功能。我已经安装了最新版本的Xcode和iOS SDK。我的问题是:如果我使用这个新的Xcode / SDK组合重建我的应用程序,并将目标iOS级别设置为低于5的级别,为了向后兼容,这仍然意味着我的应用程序是为此构建的,因此与之兼容, iOS5,对吗?我当然会用iOS 5进行测试,但我希望能够声称iOS5支持它,同时仍然保持向后兼容性。

With the release of iOS 5, I want to make sure my app is compatible. There is nothing new in iOS 5 that my app uses. I have installed the latest version of Xcode and iOS SDK. My question is this : if I rebuild my app using this new Xcode/SDK combination, and set the target iOS level to something older than 5, for backwards compatibility, this still means that my application is built for, and is thus compatible with, iOS5, correct? I will of course test it with iOS 5, but I want to be able to claim it's supported on iOS5, while still maintaining backwards compatibility.

我是否正确理解这是怎么回事有效吗?

Do I understand correctly how this works?

谢谢!

标记

推荐答案

是的,这没问题。您应该始终使用最新的SDK进行构建,但是如果您将部署目标设置为,比如说4.2(对于许多应用程序来说很常见),甚至是3.0,正如您打算那样,当然它将在iOS 5下运行。

Yes, that's no problem. You should always build with the latest SDK but if you set your Deployment Target to, let's say, 4.2 (which is common for many apps), or even 3.0, as you intend to do, of course it will run under iOS 5.

测试它仍然是明智的,因为有一些变化可能会导致iOS 5中的错误,但总的来说,它应该不是问题。

Testing it will still be wise since there are some changes that might lead to bugs in iOS 5, but in general, it shouldn't be a problem.

这篇关于使用Xcode定位iOS级别以实现向后兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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