Re: Appending value in xcconfig file
Re: Appending value in xcconfig file
- Subject: Re: Appending value in xcconfig file
- From: Jocelyn Houle <email@hidden>
- Date: Fri, 16 Apr 2010 09:13:46 -0400
> Unfortunately code like:
>
> FRAMEWORK_SEARCH_PATHS = $(FRAMEWORK_SEARCH_PATHS) NEW_VALUE
>
> doesn't work at all. It applies only NEW_VALUE and forgets about previous
> setting.
[snip]
> Is it any way to append NEW_VALUE to setting keeping also original value?
I've been using a trick inspired by what I saw here:
http://code.google.com/p/google-toolbox-for-mac/source/browse/trunk/XcodeConfig/subconfig/GTMMerge.xcconfig
The idea is that Xcode won't accept things like the following:
SOME_VAR = "firstValue";
SOME_VAR = $(SOME_VAR) "secondValue";
The problem seems to come from the way it reads variables. Instead of updating the variable every time, it will instead always return what the variable was set to at the beginning of the stage (Project/Target/etc.).
The workaround is to create a bunch of unique variables, and merge them in a final stage.
Not an ideal solution, but one that served me well nonetheless...
Hope it helps... _______________________________________________
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