xcode 在 Snow Leopard 上安装 Mac OS X SDK 10.5
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5310368/
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
Install Mac OS X SDK 10.5 on Snow Leopard
提问by Tomas Andrle
Is there an easy way to install / download the Mac OS X 10.5 SDK on Snow Leopard?
是否有一种简单的方法可以在 Snow Leopard 上安装/下载 Mac OS X 10.5 SDK?
I have Xcode 4.0 installed via the Mac App Store. I can also download it from the developer site if necessary but I don't know if it includes the 10.5 SDK.
我通过 Mac App Store 安装了 Xcode 4.0。如有必要,我也可以从开发人员站点下载它,但我不知道它是否包含 10.5 SDK。
I need the 10.5 SDK for building Android.It is a hard requirement stated in the docs. I tried symlinking to the 10.6 SDK but that didn't work.
我需要 10.5 SDK 来构建 Android。这是文档中规定的硬性要求。我尝试符号链接到 10.6 SDK,但没有奏效。
(Perhaps it would be OK to get the SDK from an older Mac that is actually running 10.5 and has an older version of Xcode installed? Would that work?)
(也许可以从实际运行 10.5 并安装了旧版本 Xcode 的旧 Mac 上获取 SDK 吗?这行得通吗?)
回答by Thomas
The 10.5 sdk is not available for XCode 4.0. You will need to keep XCode 3.2.6 if you need it.
10.5 sdk 不适用于 XCode 4.0。如果需要,您需要保留 XCode 3.2.6。
回答by Matt Gallagher
There is a solution to install the Mac OS X SDK 10.5 on Snow Leopard shown here:
此处显示了在 Snow Leopard 上安装 Mac OS X SDK 10.5 的解决方案:
How to add base SDK for 10.5 in xCode 4
Basically, you can run the MacOSX10.5.pkg from an Xcode 3 installer and install the SDK into an Xcode 4 install.
基本上,您可以从 Xcode 3 安装程序运行 MacOSX10.5.pkg,并将 SDK 安装到 Xcode 4 安装中。