简体   繁体   English

Xcode中Base SDK的含义

[英]Meaning of Base SDK in Xcode

What is the meaning of "Base SDK" in the project settings? 项目设置中“Base SDK”的含义是什么? It confuses me. 这让我很困惑。 For instance, if I choose iOS 4.2 there, on which devices can my app run? 例如,如果我在那里选择iOS 4.2,我的应用程序可以在哪些设备上运行? Only on iPhone 4? 只在iPhone 4上? This worries me, because iOS 4.2 is the only option I can choose in the latest Xcode 3.2.5. 这让我很担心,因为iOS 4.2是我在最新Xcode 3.2.5中可以选择的唯一选项。

I also want to know the meaning of "iOS Deployment Target" in the project settings. 我还想知道项目设置中“iOS部署目标”的含义。 Because here I can choose iOS 4.1 say. 因为在这里我可以选择iOS 4.1说。 What sense does it make to have a deployment target of 4.1 and base SDK of 4.2? 具有4.1的部署目标和4.2的基础SDK有什么意义? Won't that mess things up? 这不会搞砸了吗? How are the two related? 这两者有什么关系?

Basically it means that you're going to be able to use all the API that is public in 4.2 SDK. 基本上它意味着您将能够使用4.2 SDK中公开的所有API。 This has nothing to do with "Which phone your app can run on". 这与“您的应用可以运行哪款手机”无关。

iOS deployment target on the other hand, is asking you which devices can this app run. 另一方面,iOS部署目标是询问此应用程序可以运行哪些设备。 This is quite a dangerous question, since you can then say from iOS 3.0 to 4.2 for example. 这是一个非常危险的问题,因为你可以说从iOS 3.0到4.2。 This means that your app can be installed in any iPhones running iOS 3.0 to 4.2, no matter what the phone is. 这意味着您的应用程序可以安装在运行iOS 3.0到4.2的任何iPhone中,无论手机是什么。 That means the original iPhone and iPhone 3G can run your app if they have at least iOS 3.0 installed. 这意味着原始iPhone和iPhone 3G可以运行您的应用程序,如果他们至少安装了iOS 3.0。 You should test your app carefully if you decide to do this. 如果您决定这样做,您应该仔细测试您的应用程序。 Apple does not provide any way to test on older OS. Apple没有提供任何测试旧操作系统的方法。 You'd have to devise that strategy yourself. 你必须自己设计这个策略。

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

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