Re: xcodebuild and build settings
Re: xcodebuild and build settings
- Subject: Re: xcodebuild and build settings
- From: email@hidden
- Date: Wed, 28 Nov 2007 02:18:38 +0000
I changed to use GCC_PREPROCESSOR_DEFINITIONS.
However, I'm unsure what "value" is supposed to be.
If I use GCC_PREPROCESSOR_DEFINITIONS, it appears the
command interpreter expands it to nothing.
When I look at the output of xcodebuild, I only see -DXYZ=1.
The original GCC_PREPROCESSOR_DEFINITIONS
values (specified in the Project) are no longer
present.
Carsten Hansen
>> I'm creating a Standard Tool, Command Line Utility.
>> Suppose in the Build settings for the Project I have:
>> Other C Flags $(inherited) -DFOO=1 -DBAR=0
>>
>> How can I append another symbol (-DXYZ=1) from the command line when
>> using xcodebuild?
>> How can I modify the value of BAR to be 1 from the command line when
>> using xcodebuild?
> The strict answer to your question is:
> xcodebuild OTHER_CFLAGS="$(value) -DXYZ=1"
> but the real answer is: don't use OTHER_CFLAGS for preprocessor
> macros, use "Preprocessor Macros" instead. For example,
> xcodebuild GCC_PREPROCESSOR_DEFINITIONS="$(value) XYZ=1"
> The man page for xcodebuild gives more details. One lesser known fact
> is that you can also pass defaults in addition to build settings on
> the xcodebuild command line, for example:
> xcodebuild -PBXNumberOfParallelBuildSubtasks=1
> Scott
>>
>> Thanks,
>>
>> Carsten Hansen
>>
_______________________________________________
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