• 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: Appending value in xcconfig file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Appending value in xcconfig file (From: Dmitry Nezhevenko <email@hidden>)

  • Prev by Date: Re: Feeding Terminal.app from Xcode RunScript Phase
  • Next by Date: Intermittent distcc failures on Snow Leopard with Xcode 3.2.2
  • Previous by thread: Appending value in xcconfig file
  • Next by thread: Re: Appending value in xcconfig file
  • Index(es):
    • Date
    • Thread