有没有办法在10.6机器上获取/使用OS X 10.3 Cocoa SDK? [英] Is there a way to get/use the OS X 10.3 Cocoa SDK on a 10.6 machine?

查看:144
本文介绍了有没有办法在10.6机器上获取/使用OS X 10.3 Cocoa SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在你问之前,是的,我有一个很好的理由想要的东西运行在10.3。这是一个非常小的内部项目,必须运行在一个非常重要的人的机器,这是不能升级的一个很好的理由。 =)



10.6 DVD似乎没有提供安装10.3 SDK的选项,只有10.4+。我也不能在苹果网站上找到它。



我发现这个提示关于如何安装在10.5,通过Xcode可选安装, t似乎是10.6的情况?
http://www.cocoabuilder.com/archive/cocoa/201508-10-3-9-sdk-with-xcode-2-5-on-leopard.html



它不兼容,还是只是不提供,因为它这么老?我必须使用较早版本的Xcode吗?我可以尝试通过< 10.6 DVD吗?

解决方案

安装它不需要Mac OS X 10.3 SDK为Mac OS X 10.3构建。只需安装可选的Mac OS X 10.4(通用)SDK,然后:




  • Base SDK < Mac OS X 10.4(通用)SDK

  • 编译器版本设置为GCC 4.0

  • 设置 Mac
  • 小心避免任何不在Mac OS X 10.3上的API
  • ( >


这对于构建将在Mac OS X 10.3.9上运行的Mac OS X应用程序是足够的,即使在Snow Leopard。 >

10.3.9 版本号很重要;如果您在此应用程序中使用任何C ++,Mac OS X 10.3.9是第一个版本(是10.3的唯一版本),包括使用GCC 4.0或更高版本所需的共享库形式的标准C ++库。否则你必须使用GCC 3.3,它不包括也不支持Xcode 3.2在Snow Leopard。



另一方面,C和Objective-C代码甚至在早期版本的Mac OS X 10.3上运行。我不能想到一个理由,它不会,但我没有自己尝试。即使是使用6岁的Mac OS X版本的用户也会使用最新版本的软件,对吗?


Before you ask, yes, I have a very good reason for wanting something to run on 10.3. It's a very small in-house project that must run on a very important person's machine, which cannot be upgraded for a very good reason. =)

The 10.6 DVD doesn't seem to offer an option to install the 10.3 SDK, only 10.4+. I also can't seem to find it on Apples website.

I found this tip about how to install it on 10.5, via the Xcode optional installs, but that doesn't seem to be the case for 10.6? http://www.cocoabuilder.com/archive/cocoa/201508-10-3-9-sdk-with-xcode-2-5-on-leopard.html

Is it incompatible, or just not offered because it's so old? Must I use an earlier version of Xcode? Can I just try to install it via a <10.6 DVD?

解决方案

You don't need the Mac OS X 10.3 SDK to build for Mac OS X 10.3. Just install the optional Mac OS X 10.4 (Universal) SDK, then:

  • Set your Base SDK to the Mac OS X 10.4 (Universal) SDK
  • Set your Compiler Version to GCC 4.0
  • Set your Mac OS X Deployment Target to Mac OS X 10.3 for the PowerPC architecture (using build setting conditions)
  • Carefully avoid any API that isn't on Mac OS X 10.3

This should be sufficient for building a Mac OS X application that will run on Mac OS X 10.3.9, even on Snow Leopard.

The 10.3.9 version number is important; if you're using any C++ in this application, Mac OS X 10.3.9 is the first version (and the only version of 10.3) that includes the Standard C++ Library in shared library form, which is required for using GCC 4.0 or later. Otherwise you'd have to use GCC 3.3, which is neither included nor supported with Xcode 3.2 on Snow Leopard.

On the other hand, C and Objective-C code may even run on earlier releases of Mac OS X 10.3. I can't think of a reason it wouldn't, but I haven't tried it myself. Even people sticking with a 6-year-old version of Mac OS X will use the most recent version of it, right?

这篇关于有没有办法在10.6机器上获取/使用OS X 10.3 Cocoa SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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