• 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: clean / removing precompile headers broke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clean / removing precompile headers broke


  • Subject: Re: clean / removing precompile headers broke
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 19 Jul 2006 07:37:11 -0700


On Jul 19, 2006, at 7:24 AM, email@hidden wrote:

Upon researching on a build problem where a clean command line build would render incorrect Info.plists I noticed  that xcodebuild did not under any circumstances remove precopiled headers. It appears that the bug mentioned in the mail thread below did resurface. Can anybody confirm?


I'm using the following XCode build:

Xcode IDE: 744.0

Xcode Core: 747.0

ToolSupport: 733.0


here is a link to a prvious thread:

http://lists.apple.com/archives/xcode-users/2006/Mar/msg00222.html


Has the bug already been opened?


As of Xcode 2.1 Xcode uses a "shared precompiled header" mechanism where several projects that have similar characteristics can use the same precompiled header file.  This can save enormous amounts of time and disk space if, for example, you're building dozens of plugins that are all built the same way.  That's why precompiled headers are in a central directory separate from any project's build directory.

Shared precompiled headers are identified by the name of the prefix file and a hash of critical build settings.  If all match, an existing shared one is used; if there's any difference, then a new one is created.  Cleaning uses the same algorithm.

So what can happen is you:
- build
- change settings
- clean including precompiled headers

And there's now no match for the precompiled header, so the one that you used for the last build is not cleaned.  Sometimes this is desired behavior; that may be a header shared by another project (perhaps one that isn't open right now).

If you want to ensure that precomps are removed, make sure to Clean (Removing Precomps) before changing any build settings or your prefix name.  

The precomp cache is capped at 1Gb, and on each Xcode launch it clears out older headers so that the cache doesn't grow without bounds. There's an Expert Preference you can use to control the cache size.  And you can always delete it manually from your /Library/Caches folder.

Chris
 _______________________________________________
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: 
 >clean / removing precompile headers broke (From: email@hidden)

  • Prev by Date: clean / removing precompile headers broke
  • Next by Date: Re: OT: How to file a radar
  • Previous by thread: clean / removing precompile headers broke
  • Next by thread: Re: clean / removing precompile headers broke
  • Index(es):
    • Date
    • Thread