xcode 我该如何更改 ios sdk?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8338957/
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
how can I change ios sdk?
提问by Hacer sengul Akac
I want to change my iOS SDK. I have ios 5 and xcode 4.2 but I have to decrease it to iOS 4.2 SDK because of my application. In developer.apple.com the xcode 4.1 with iOS 5 so it is not available. How can I find xcode 4.1 with ios sdk 4.2 or how can I setup the ios sdk 4.2 without download xcode again. If it is not possible can you give me a linq for download xcode 4.1 with ios sdk 4.2
我想更改我的 iOS SDK。我有 ios 5 和 xcode 4.2,但由于我的应用程序,我必须将其减少到 iOS 4.2 SDK。在 developer.apple.com 中,带有 iOS 5 的 xcode 4.1 因此不可用。如何使用 ios sdk 4.2 找到 xcode 4.1,或者如何在不再次下载 xcode 的情况下设置 ios sdk 4.2。如果不可能,你能给我一个 linq 下载 xcode 4.1 和 ios sdk 4.2
采纳答案by tarmes
The base SDK should be the currently available one - it's the version of the SDK that you have installed to compile against.
基础 SDK 应该是当前可用的——它是您安装的用于编译的 SDK 版本。
However, further down the settings list you'll see that you can set the "Deployment Target" to be for lower versions iOS. That's the one that specifies the lower version of the OS that you app will run on.
但是,在设置列表的更下方,您会看到您可以将“部署目标”设置为适用于较低版本的 iOS。这是指定您的应用程序将在其上运行的操作系统的较低版本的那个。
回答by beryllium
Latest SDK included all required features from previous SDK versions. You shouldn't worry about it. If you want to support previous versions of iOS just set iOS Deployment Targetto iOS 4.2 (or another would you like) in project settings at Build Settingstab.
最新的 SDK 包括以前 SDK 版本的所有必需功能。你不应该担心。如果您想支持以前版本的 iOS,只需在Build Settings选项卡的项目设置中将iOS Deployment Target设置为 iOS 4.2(或您喜欢的其他版本)。