从哪里获得 macOS SDK 10.6 for Xcode? [英] Where to get macos SDK 10.6 for Xcode?

查看:170
本文介绍了从哪里获得 macOS SDK 10.6 for Xcode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 OS X Lion 上安装了 Xcode 4.4.我想安装 Mac 10.6 SDK - 也​​称为 macosx10.7 SDK - 因为我需要编译 openFrameworks.

I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks.

我发现我需要从本网站下载其他工具.但是我没有在那里找到任何 10.6 SDK.我也尝试查看 Xcode Preferences -> Downloads -> Components,但没有办法.

I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way.

我想知道如何为 Xcode 安装以前的 SDK?

I am wondering how can I install previous SDKs for Xcode?

推荐答案

不幸的是,Apple 往往使这件事变得比您希望的要困难得多.您无法自行下载 SDK.它们是 Xcode 特定版本的一部分.所以你必须下载正确版本的 Xcode.搜索10.6",你会看到你想要 Xcode 4.1.

Unfortunately, Apple tends to make this much harder than you'd like. You can't download SDKs by themselves. They come as part of specific versions of Xcode. So you have to download the right version of Xcode. Search for "10.6", and you'll see that you want Xcode 4.1.

下载后,您可以安装它(该版本将进入/Developer,因此它不会破坏您的/Applications 版本),或者您可以打开包并在其中找到 SDK.如果您不知道如何破解这些软件包,请安装它.

Once you download that, you can install it (that version will go into /Developer, so it won't break your /Applications version), or you can open up the package and find the SDKs in it. If you don't know how to crack open these packages, just install it.

完成后,搜索MacOSX10.6.sdk".我忘记了它在那个特定版本中的确切位置.

Once you do that, search for "MacOSX10.6.sdk". I forget exactly where it is in that particular version.

那时我所做的是将 sdk 复制到/SDKs 目录中.那样我总是把它们全部都有.

What I do at that point is copy the sdk into a /SDKs directory. That way I always have them all.

现在,您需要将其添加到您当前的 Xcode 版本中.您可以通过在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs 中创建符号链接来实现.如果你愿意,你可以使用我的 link-sdks 脚本.

Now, you need to add it to your current version of Xcode. You can do that by making symlinks in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs. If you like, you can use my tiny link-sdks script for that.

更新:在现代版本的 Xcode (7.3+) 中使用旧版 SDK 在此处编辑 MinimumSDKVersion:

UPDATE: In modern versions of Xcode (7.3+) to use older SDKs edit MinimumSDKVersion here:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist

这篇关于从哪里获得 macOS SDK 10.6 for Xcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆