• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: xcodebuild & arch -x86_64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: xcodebuild & arch -x86_64
      • From: Eric Gorr <email@hidden>
References: 
 >xcodebuild & arch -x86_64 (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: strip error using framework in 10.5 build that was (I think) compiled on 10.6
  • Next by Date: Re: xcodebuild & arch -x86_64
  • Previous by thread: xcodebuild & arch -x86_64
  • Next by thread: Re: xcodebuild & arch -x86_64
  • Index(es):
    • Date
    • Thread