简体   繁体   English

在XCode 2.5,OS X 10.4和OS X 10.11.3上构建

[英]Is building on XCode 2.5, OS X 10.4 possible with a OS X 10.11.3

I couldn't find anything in the search so here this goes: I am looking to build an XCode Mac OS X app, and it is required to be compatible with XCode 2.5, which is for OS X 10.4. 我在搜索中找不到任何内容,因此可以解决:我正在寻找一个XCode Mac OS X应用程序,它必须与OS X 10.4的XCode 2.5兼容。 I have an OS X 10.11.3 with a XCode 7.3.1. 我有一个带有XCode 7.3.1的OS X 10.11.3。

I tried downloading XCode 2.5 and installing it, but the setup said I needed to have OS X 10.4 to install. 我尝试下载XCode 2.5并安装它,但是安装程序说我需要安装OS X 10.4。 When running XCode 7.3.1 on the OS X 10.11.3, I can get the compiler settings to compile and run with the minimum deploy OS X version as 10.4, but I am not sure how to convert the project to XCode 2.5. 在OS X 10.11.3上运行XCode 7.3.1时,我可以使用最低的部署OS X版本10.4来获取编译器设置进行编译和运行,但是我不确定如何将项目转换为XCode 2.5。

I was thinking about running VMWare or something, but I'm not really sure how to get a 10.4 Mac OS X image. 我当时正在考虑运行VMWare之类的东西,但是我不确定如何获取10.4 Mac OS X映像。 Can someone help me figure out what I can do? 有人可以帮我弄清楚我能做什么吗? Would I have to compile projects manually through an older version of compilers? 我是否需要通过旧版本的编译器手动编译项目? Thanks guys! 多谢你们!

You don't need Xcode 2.5 to build binaries for 10.4. 您不需要Xcode 2.5即可为10.4构建二进制文件。 What you need is: 您需要的是:

  • The Mac OS X 10.4 SDK Mac OS X 10.4 SDK
  • A compatible compiler: GCC 4.0 is recommended, but GCC 4.2 works as well. 兼容的编译器:建议使用GCC 4.0,但GCC 4.2也可以。 Things get a bit more complicated if you need C++11 support as well. 如果还需要C ++ 11支持,事情会变得更加复杂。

A solution is to install the compilers and SDKs you need using the XcodeLegacy script. 一种解决方案是使用XcodeLegacy脚本安装所需的编译器和SDK。 It extracts these from older Xcode distributions. 它从较旧的Xcode发行版中提取这些。

You should then be able to select the older Mac OS X SDK and compiler in the Xcode version you have installed. 然后,您应该能够在已安装的Xcode版本中选择较旧的Mac OS X SDK和编译器。 Read carefully the XcodeLegacy documentation. 仔细阅读XcodeLegacy文档。

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

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