Re: CURRENT_ARCH definition incorrect
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