• 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: CURRENT_ARCH definition incorrect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CURRENT_ARCH definition incorrect


  • Subject: Re: CURRENT_ARCH definition incorrect
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 4 Jun 2010 17:10:13 -0700

On Jun 4, 2010, at 11:43 AM, Harry Plate wrote:

> We have a "Run Script Phase" attached to our target that invokes a script
> that wants to use the CURRENT_ARCH env variable.
>
> I note in Snow Leopard and Xcode 3.2.2 that this var seems to be stuck on
> "i386", and does NOT change when our active architecture is "x86_64".
>
> Leopard and Xcode 3.1.2 work just fine and as expected: getting set to the
> appropriate architecture based on the active architecture setting.
>
> Is there a new way to determine active architecture?

Run Script build phases are not (and should not be) run multiple times for multiple architectures.  The only thing that gets iterated over is the actual compile and link build phase, and the only time CURRENT_ARCH is valid is during a compile or link.

You may want instead the ARCHS build setting, and iterate over it yourself.  So far as I know there is no way to access the Active Architecture popup setting within a Run Script build phase.

Chris _______________________________________________
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: 
 >CURRENT_ARCH definition incorrect (From: Harry Plate <email@hidden>)

  • Prev by Date: [ANN] gcc 4.2.1, gcov, iPhones, CoverStory, code coverage and you
  • Next by Date: How to close the build results window?
  • Previous by thread: CURRENT_ARCH definition incorrect
  • Next by thread: [ANN] gcc 4.2.1, gcov, iPhones, CoverStory, code coverage and you
  • Index(es):
    • Date
    • Thread