如何在 xCode 4 中为 10.5 添加基础 SDK [英] How to add base SDK for 10.5 in xCode 4

查看:31
本文介绍了如何在 xCode 4 中为 10.5 添加基础 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨晚安装了xCode 4,并尝试编译一个应该支持10.5及以上操作系统的软件.

I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs.

它给出了错误消息缺少基本 SDK".我发现 10.5 base SDK 已经不在菜单中了.

It gave the error message "Base SDK missing". I found that 10.5 base SDK is no longer in the menu.

有没有办法获得该基础 SDK?有没有办法解决这个问题?

Is there any way to get that base SDK? Is there any get around for this problem?

提前致谢.

推荐答案

放弃 10.5 SDK 也是一个问题.

Dropping the 10.5 SDK is also a problem for software which does not use Xcode for the build system, but expects (perhaps foolishly) for specific SDKs to be in place.

要重新添加 SDK,我从 Xcode 3.2.6 下载中重新安装了 MacOSX10.5.pkg.它位于磁盘映像上名为Packages"的隐藏文件夹中.挂载 .dmg 文件后,您可以从命令行使用 open/Volumes/Xcode andiOS SDK/Packages/ 打开它.安装软件包时,选择更改安装位置并选项单击要安装到的驱动器,以便您可以指定文件夹.目标文件夹应该是 /Developer 或 Xcode 4 安装的基础(如果您将其放在非标准位置).

To add the SDK back, I re-installed the MacOSX10.5.pkg from the Xcode 3.2.6 download. It is in a hidden folder named "Packages" on the disk image. After mounting the .dmg file, you can open it from the command line with open /Volumes/Xcode and iOS SDK/Packages/. When installing the package, choose change install location and option-click on the drive you want to install to, so that you can specify a folder. The target folder should be /Developer or the base of your Xcode 4 install if you have put it in a non-standard location.

这篇关于如何在 xCode 4 中为 10.5 添加基础 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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