Xcode SDK IOS 4.2 安装和构建设置中缺少 iOS 4.1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4524975/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:02:41  来源:igfitidea点击:

Xcode SDK IOS 4.2 installation and missing iOS 4.1 in build settings

iphonexcodeiosios-4.2

提问by Asta ni enohpi

i have download Xcode SDK 4.2(xcode_3.2.5_and_ios_sdk_4.2_final.dmg) from Apple developer site and installed successfully . when open my old xcode project it shows baseSDk missing ,when i try to change project setting ,i have found and set base SDk as 4.2 it works fine

我已从 Apple 开发者网站下载 Xcode SDK 4.2(xcode_3.2.5_and_ios_sdk_4.2_final.dmg) 并成功安装。当打开我的旧 xcode 项目时,它显示缺少 baseSDk,当我尝试更改项目设置时,我发现并将 base SDk 设置为 4.2,它工作正常

 my problem is ,in Base SDk list it shows  

(iOS 2.1, iOS 2.2, iOS 2.2.1, iOS 3.0, iOS 3.1, iOS 3.1.2, iOS 3.1.3, iOS 4.2)

(iOS 2.1、iOS 2.2、iOS 2.2.1、iOS 3.0、iOS 3.1、iOS 3.1.2、iOS 3.1.3、iOS 4.2)

There is no iOS 4.0and iOS 4.1(which i have used before 4.2). anything wrong in my installation???? Plz help me to correct my mistake

没有iOS 4.0iOS 4.1(我在 4.2 之前使用过)。我的安装有什么问题吗????请帮我纠正我的错误

Thanks in advance

提前致谢

回答by Gopalakrishnan Mallappan

This does happen. I generally just use the latest SDK as base SDK. You support the latest version and forget abt the older versions[apple style]. This way your app can take advantage of all the latest functionality.

这确实会发生。我一般只使用最新的 SDK 作为基础 SDK。您支持最新版本而忘记了旧版本[苹果风格]。通过这种方式,您的应用程序可以利用所有最新功能。

One thing you must remember is that the Base SDK is different from the deployment target. base SDK is the latest SDK your project will use and support. deployment target is found in target->getInfo; this is the minimum version that your app will support. 4.2 is a free upgrade and most of them would upgrade, so i'd set the deployment target as 4.0 or at the least 3.0. who uses 2.x anymore?

您必须记住的一件事是 Base SDK 与部署目标不同。base SDK 是您的项目将使用和支持的最新 SDK。部署目标在 target->getInfo 中找到;这是您的应用程序将支持的最低版本。4.2 是免费升级,大部分都会升级,所以我将部署目标设置为 4.0 或至少 3.0。谁在使用 2.x 了?

if you really want 4.0 and 4.1 as well, you have to install the old 4.1 GM as a parallel Xcode IDE or follow this link and get support for all the versions in a single XCode IDE.

如果您真的还需要 4.0 和 4.1,则必须将旧的 4.1 GM 作为并行 Xcode IDE 安装,或点击此链接并在单个 XCode IDE 中获得对所有版本的支持。

http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/

http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/

I'd suggest building using 4.2 but follow the link and install all the simulator SDKs for old versions so that you can test the app on those versions of the simulator.

我建议使用 4.2 构建,但请按照链接安装旧版本的所有模拟器 SDK,以便您可以在这些版本的模拟器上测试应用程序。

回答by Di Wu

Nothing went wrong here. That's how Apple forces the developers to always use the latest SDK to develop.

这里没有任何问题。这就是 Apple 强制开发人员始终使用最新的 SDK 进行开发的方式。