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

查看:361
本文介绍了如何在xCode 4中添加10.5的base 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.

它显示错误信息Base SDK missing 。我发现10.5基本的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也是一个问题,软件不使用Xcode的构建系统,但期望(可能愚蠢)特定的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 \和\ iOS \ 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的base SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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