Xcode iPhone - Base SDK、Active SDK 的区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1109609/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode iPhone - Base SDK, Active SDK difference?
提问by quano
What's the difference between the "Base SDK for all configurations"and the "Active SDK"in Xcode?
Xcode 中的“适用于所有配置的基础 SDK”和“活动 SDK”之间有什么区别?
回答by Nathan de Vries
The "Active SDK" value is effectively a build-time override of your "Base SDK" value, and determines which version of the SDK is used to build your application. In general, you should build your application against the latest stableSDK (at the moment, that's the non-beta 3.0 SDK), and set your "iPhone OS Deployment Target" to the version of the oldest device you intend to support (e.g. 2.2.1).
“Active SDK”值实际上是“Base SDK”值的构建时覆盖,并确定使用哪个版本的 SDK 来构建您的应用程序。通常,您应该针对最新的稳定版SDK(目前是非 beta 3.0 SDK)构建您的应用程序,并将“iPhone OS 部署目标”设置为您打算支持的最旧设备的版本(例如 2.2 .1)。