简体   繁体   English

如何在xCode 4中添加10.5的基本SDK

[英]How to add base SDK for 10.5 in xCode 4

I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs. 我昨晚安装了xCode 4并试图编译一个应支持10.5及以上操作系统的软件。

It gave the error message "Base SDK missing". 它给出了错误消息“Base SDK missing”。 I found that 10.5 base SDK is no longer in the menu. 我发现10.5基本SDK不再出现在菜单中。

Is there any way to get that base SDK? 有没有办法获得基础SDK? Is there any get around for this problem? 有没有解决这个问题?

Thanks in advance. 提前致谢。

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. 删除10.5 SDK对于不使用Xcode用于构建系统的软件也是一个问题,但是期望(或许是愚蠢的)特定的SDK到位。

To add the SDK back, I re-installed the MacOSX10.5.pkg from the Xcode 3.2.6 download. 要重新添加SDK,我从Xcode 3.2.6下载中重新安装了MacOSX10.5.pkg It is in a hidden folder named "Packages" on the disk image. 它位于磁盘映像上名为“Packages”的隐藏文件夹中。 After mounting the .dmg file, you can open it from the command line with open /Volumes/Xcode\\ and\\ iOS\\ SDK/Packages/ . 安装.dmg文件后,可以使用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. 如果您将目标文件夹放在非标准位置,则目标文件夹应为/Developer或Xcode 4安装的基础。

You can copy it from another Xcode installation into the /YourDeveloperFolder/SDKs/... but Xcode 4 still will not build Universal (Intel/PPC) binaries, essentially making it all but pointless to use the 10.5 SDK (except for "this method doesn't exist yet" style warnings). 您可以将其从另一个Xcode安装复制到/YourDeveloperFolder/SDKs/...但Xcode 4仍然不会构建通用(Intel / PPC)二进制文件,基本上使用10.5 SDK完全没有意义(“此方法除外)还不存在“风格警告”。 The official word from Apple (via their devforums): If you need 10.5/PPC support, stick with Xcode 3. 来自Apple的官方消息(通过他们的devforums):如果您需要10.5 / PPC支持,请坚持使用Xcode 3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM