问题描述
我已升级到配备4.3版本SDK的XCode 4.
I've upgraded to XCode 4 which comes with the 4.3 version of the SDK.
但我们想确保我们的应用程序在有4.2及以后,而不仅仅是4.3。
But we'd like to make sure our app runs on devices that have 4.2 and later, not just 4.3.
XCode中是否有可以配置的设置,所以我们不必强制升级所有人?
Is there a setting in XCode that can be configured so we don't have to force upgrade everyone just yet?
推荐答案
项目设置中有两个设置会影响您应用支持的平台:
There are two settings in the project settings that affect which platforms you app will support:
- Base SDK:构建期间使用的基本SDK的名称或路径。
- 部署目标:代码将加载到此以及稍后iOS的版本。
- Base SDK : The name or path of the base SDK being used during the build.
- Deployment Target : Code will load on this and later versions of iOS.
第一个设置你链接的SDK,第二个设置应用程序的iOS版本会支持。在部署目标设置上理解本说明非常重要:
The first sets the SDK that you link against and the second sets the iOS versions that your app will support. It is important to understand this note on the Deployment Target setting:
因此,如果您使用的是仅存在于4.3中的任何API,请确保这些框架是弱链接的,并且您的代码在使用这些API之前会检查iOS版本。
So if you are using any APIs that only exist in 4.3, make sure those frameworks are weak-linked and that your code checks the iOS version before using those APIs.
这篇关于如何使用XCode 4定位4.2版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!