Re: xcodebuild & arch -x86_64
Re: xcodebuild & arch -x86_64
- Subject: Re: xcodebuild & arch -x86_64
- From: Clark Cox <email@hidden>
- Date: Wed, 14 Oct 2009 10:29:37 -0700
On Wed, Oct 14, 2009 at 9:38 AM, Eric Gorr <email@hidden> wrote:
> In the release notes it says:
>
> The xcodebuild tool never runs with garbage collection. It can be run in
> 64-bit mode on 64-bit hardware with the command arch -ppc64 xcodebuild or
> arch -x86_64 xcodebuild. Tools invoked by the Xcode and xcodebuild are
> generally run as 32-bit regardless of how the IDE or tool is invoked,
The tools run as whatever they are built to run as; Xcode and
xcodebuild don't attempt to run them with any specific architecture.
If the tool is built for 64-bit, then it will run 64-bit on 64-bit
hardware.
> with
> the exception of the ldlinker, which always runs as 64-bit on 64-bit
> hardware.
>
> However, if from the terminal I do:
>
> ~ $arch -x86_64 xcodebuild
> arch: posix_spawnp: xcodebuild: Bad CPU type in executable
>
> ~ $xcodebuild -version
> Xcode 3.1.3
> Component versions: DevToolsCore-1192.0; DevToolsSupport-1186.0
> BuildVersion: 9M2736
>
> ~ $arch -x86_64 /Developer/usr/bin/xcodebuild
> arch: posix_spawnp: /Developer/usr/bin/xcodebuild: Bad CPU type in
> executable
>
> ~ $/Developer/usr/bin/xcodebuild -version
> Xcode 3.1.3
> Component versions: DevToolsCore-1192.0; DevToolsSupport-1186.0
> BuildVersion: 9M2736
>
>
> I am doing this under 10.5.8. If I try this under 10.6.1 and Xcode 3.2, it
> works as expected.
>
> Am I missing something?
Yes. You're missing that xcodebuild was 32-bit only before Xcode 3.2.
The real question is: what are you hoping to accomplish by forcing
xcodebuild to run with one architecture over the other?
--
Clark S. Cox III
email@hidden
_______________________________________________
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