如何添加“基础 SDK”在 XCode 4 中?
我目前使用 XCode 4.0 和 Base SDK 4.3。
我想使用较旧的 SDK(例如 4.2)编译我的应用程序,但我没有这种可能性,因为除了 SDK 4.3 之外我别无选择。
您知道如何添加比建议的默认 Base SDK 4.3 更旧的 SDK 吗?
多谢 !
I currently use XCode 4.0 with 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.
Do you know how to add older SDKs than the default Base SDK 4.3 proposed ?
Thanks a lot !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你不能那样做。 Xcode 版本与 iOS SDK 一起发布。它们链接在一起,即特定的 Xcode 版本只能在特定的 iOS SDK(默认情况下附带)上编译代码。
要在低版本的SDK中编译代码,您需要下载低版本的Xcode
You cannot do that. Xcode versions are released along with iOS SDK's. They are linked together i.e particular Xcode version can compile the code on the specific iOS SDK only (which it come with by default).
To compile your code in lower version of SDK, you need to download the lower version of Xcode
通过更改 iosdeployment 目标,您可以运行它。
为了这,
转到 xcode 中的目标并获取信息。您可以在搜索字段中找到第二个选项卡 build.in。输入 ios 部署目标。将其更改为 4.2。这样它也可以在 4.2 上运行
by changing the iosdeployment target you can run this.
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
在构建设置中的架构下,您有一个称为 Base SDK 的东西。您可以在那里更改您的基本 SDK 并将其设置为您已安装的最新 ios 版本。
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.