Re: 64-bit, 10.5/10.4, SDK build settings
Re: 64-bit, 10.5/10.4, SDK build settings
- Subject: Re: 64-bit, 10.5/10.4, SDK build settings
- From: Shawn Erickson <email@hidden>
- Date: Tue, 2 Jun 2009 11:22:41 -0700
On Tue, Jun 2, 2009 at 11:13 AM, Alex Sheh <email@hidden> wrote:
> Thanks for the replies, Shawn.
>
> I was considering using the below settings. This way, on ppc and x86, I wouldn't have to put additional runtime checks for function availability (since the ppc and x86 binaries would be building against 10.4 as well as deploying on 10.4).
>
> SDKROOT = macosx10.4
> SDKROOT[arch=ppc64] = macosx10.5
> SDKROOT[arch=x86_64] = macosx10.5
> MACOSX_DEPLOYMENT_TARGET = 10.4
> MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
> MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5
>
> But with respect to the below settings, doesn't this mean that on ppc64 and x86_64, the software would only run on 10.5 or later? We need to support 10.4 or later on ppc64 and x86_64.
Mac OS X 10.4 (Tiger) only supports 64-bit binaries that link against
libSystem (aka POSIX, etc.) and handful of low-level
libraries/frameworks. You cannot build an Objective-C / Cocoa / etc.
using application for 64b using the 10.4 SDK.
> However, I'm unable to use the below settings, because if I build against the 10.5 SDK, Xcode warns me that there is a new Objective-C ABI that requires me to deploy on 10.5 or later.
As it should since no 64b Objective-C runtime exists on 10.4.
I suggest you do the following and put in the needed runtime checks in
your code. This gives your customers the best experience by allowing
your software to leverage the features of the operating system you are
running on.
SDKROOT = macosx10.5
MACOSX_DEPLOYMENT_TARGET = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Ken Thomases <email@hidden>) |
| >RE: 64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Shawn Erickson <email@hidden>) |
| >Re: 64-bit, 10.5/10.4, SDK build settings (From: Shawn Erickson <email@hidden>) |
| >RE: 64-bit, 10.5/10.4, SDK build settings (From: Alex Sheh <email@hidden>) |