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

Appending value in xcconfig file


  • Subject: Appending value in xcconfig file
  • From: Dmitry Nezhevenko <email@hidden>
  • Date: Fri, 16 Apr 2010 11:50:04 +0000

Hi,

We're intensively using .xcconfig files to define various settings (such
as FRAMEWORK_SEARCH_PATHS) on multiple levels.

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.

The most pity is that this is documented "feature":

	When a configuration unit contains more than one definition for a
	particular build setting, Xcode uses the last definition in the unit. Keep
	in mind that configuration files do not have access to build setting
	definitions made in configuration files they include. That is, you cannot
	modify the definition made in an included configuration file; you can only
	replace it.

Xcode/xcodebuild even doesn't show any kind of warning/error related to
this behavior (that is expected on any modern *nix like OSes)

Is it any way to append NEW_VALUE to setting keeping also original value?

--
WBR, Dmitry
 _______________________________________________
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

  • Follow-Ups:
    • Re: Appending value in xcconfig file
      • From: Chris Espinosa <email@hidden>
    • Re: Appending value in xcconfig file
      • From: Jocelyn Houle <email@hidden>
  • Prev by Date: Re: Feeding Terminal.app from Xcode RunScript Phase
  • Next by Date: Re: Feeding Terminal.app from Xcode RunScript Phase
  • Previous by thread: Assertion failure preventing build
  • Next by thread: Re: Appending value in xcconfig file
  • Index(es):
    • Date
    • Thread