• 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: Build configurations for Target?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build configurations for Target?


  • Subject: Re: Build configurations for Target?
  • From: Scott Tooker <email@hidden>
  • Date: Tue, 4 Oct 2005 17:08:46 -0700

My guess is that you don't have GCC_PREPROCESSOR_DEFINITIONS defined in the .xcconfig file?

If so, you are running into a known bug in Xcode 2.1 that is fixed for the next release (if a build setting is defined in a configuration, but not in the .xcconfig file the configuration is using, we don't use the build setting given in the configuration).

Scott

On Oct 4, 2005, at 5:58 AM, Dix Lorenz wrote:

Hi,

I thought I had an understanding of how the build configurations in XCode 2.1 work but quite obviously I am either missing something or I hit another Bug...

I have a project with a few targets (one library and a few C++- Tools). I have two build configurations which on the project Level are based on two .xcconfig-files. They define most of my stuff, in the targets I only set the product name. So far everything works fine.

Today I added a target and for this one I would like to add a definition to pass along to the C++-Compiler, so I set

GCC_PREPROCESSOR_DEFINITIONS = "$(value) DLCLDEBUG=1"

but this gets ignored. No matter what I put in there, in the build log I always get those definitions that I set in the .xcconfigs in the project-level.

My understanding is that the target can override the settings from the project level, am I wrong? I tried the usual stuff like "Clean All", closing and reopening XCode, manually deleting the shared precompiled headers, deleting the stuff in the build directory, switching precompiling on/off, switching distributed compiling on/ off... When I look at the build log I always only see the project- level definitions.

On a (maybe) related note: At some point distributed compiles stopped working: "fatal error: can't read PCH file: No such file or directory". Even those Targets where I didn't change any settings, so I guess there is another bug hidden somewhere. But then DC has been very flaky since 2.0 anyway, I keep hoping for the next version of XCode... :-(

Any ideas?

Thanks,
Dix

_______________________________________________
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

_______________________________________________ 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: Build configurations for Target?
      • From: Dix Lorenz <email@hidden>
    • Re: Build configurations for Target?
      • From: Dix Lorenz <email@hidden>
References: 
 >Build configurations for Target? (From: Dix Lorenz <email@hidden>)

  • Prev by Date: Re: xcode projects prortability ?
  • Next by Date: Debug - Logging function Parameters
  • Previous by thread: Build configurations for Target?
  • Next by thread: Re: Build configurations for Target?
  • Index(es):
    • Date
    • Thread