Re: Build Universal 32/64 bit with XCode 3.2.6->no 64 bit
Re: Build Universal 32/64 bit with XCode 3.2.6->no 64 bit
- Subject: Re: Build Universal 32/64 bit with XCode 3.2.6->no 64 bit
- From: Christiaan Hofman <email@hidden>
- Date: Thu, 22 Sep 2011 22:39:43 +0200
On Sep 22, 2011, at 21:24, Mills, Steve wrote:
> On Sep 22, 2011, at 14:01:05, Loren Ryter wrote:
>
>> Architectures: x86_64 i386 ppc
>> Valid Architectures: i386 ppc ppc7400 ppc970
>> Mac OS X 10.5: X86_64 i386 ppc64
>>
>> Note that I removed x86_64 from the first part of "Valid Architectures"
>> while adding it to "Architectures".
>>
>> Now it builds without error. It runs on all necessary platforms from
>> PPC/Tiger thru Intel/Lion.
>>
>> HOWEVER, it still doesn't run in 64 bit mode on Lion.
>>
>> Since the deployment target is 10.4, I assumed that the first line of
>> "Valid Architectures" applies to 10.4, while the second line, that says
>> 10.5, would apply to 10.5 and up. Is this correct?
>
> No, valid architectures means "which ones would it ever be correct to build". Architectures just means "build these for this project/target". Architectures should be <= valid architectures. If an arch isn't in valid, then adding it to architectures won't make it build. Add x68_64 to both.
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
So to summarize, what is build is the intersection of archs and valid archs (unless you've checked the only active arch setting).
And as for your second part, this does not make sense, not in practice and even not logically. Conditional build settings (conditional on OS) depend on the *SDK* that you're using. *Not* on the OS version on which it will run, that's impossible, as that is fundamentally unknowable at compile time (the OS version on which it runs is a run-time condition, that's a tautology).
If you want to prevent the 64-bit arch binary from being used on 10.4 (but still want to have it for later OS versions), you have to tell the *runtime* not to use it, not the compiler. You do that in Info.plist using the LSMinimumSystemVersionByArchitecture key.
Christiaan
_______________________________________________
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