简体   繁体   English

如何在 XCode 4 中添加“Base SDK”?

[英]How to add a “Base SDK” in XCode 4?

I currently use XCode 4.0 with Base SDK 4.3.我目前使用 XCode 4.0 和 Base SDK 4.3。

I would like to compile my app with an older SDK, for example 4.2, but I don't have this possibility as I have no other choice than SDK 4.3.我想用旧的 SDK 编译我的应用程序,例如 4.2,但我没有这种可能性,因为除了 SDK 4.3 之外我别无选择。

Do you know how to add older SDKs than the default Base SDK 4.3 proposed?您知道如何添加比建议的默认 Base SDK 4.3 更旧的 SDK 吗?

Thanks a lot !非常感谢 !

You cannot do that.你不能这样做。 Xcode versions are released along with iOS SDK's. Xcode 版本与 iOS SDK 一起发布。 They are linked together ie particular Xcode version can compile the code on the specific iOS SDK only (which it come with by default).它们链接在一起,即特定的 Xcode 版本可以编译特定 iOS SDK 上的代码(仅默认附带)。 To compile your code in lower version of SDK, you need to download the lower version of Xcode要在 SDK 的低版本编译您的代码,您需要下载 Xcode 的低版本

In build settings, under Architechtures, you have something called as Base SDK.. you can change you base SDK there and set it to the latest ios version you have installed.在构建设置中,在 Architechtures 下,您有一些称为 Base SDK 的东西。您可以在此处更改基础 SDK 并将其设置为您安装的最新 ios 版本

by changing the iosdeployment target you can run this.通过更改 iosdeployment 目标,您可以运行它。

for this, go to the targets in the xcode and get the info.There you can find the second tab build.in that you have search field.type the ios deployment target.change that to 4.2.So that it can run on 4.2 also为此,go 到 xcode 中的目标并获取信息。在那里你可以找到第二个选项卡 build.in 有搜索字段。键入 ios 也可以在该部署目标上运行。

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

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