Recently the "Check Dependencies" build phase has started taking a long time
(anywhere from 2 to 10 minutes). Our project is fairly massive; roughly 1100
source files and several large libraries (Boost, etc.). We're using Xcode
3.2.5. From the Google, it seems that others have experienced this as well,
starting in Xcode 3.x.
I've tried the solutions I've found on this list and other places,
including:
1. Adding some directories
to PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES.
2. Looking for poor header include habits (headers including unnecessary
headers, etc.)
- Is there a way to generate a full report of headers that are included
during a build?
3. Checking to make sure we're not recursively including our build directory
At one point, Chris Espinosa suggested getting a report of Xcode file usage
using "sudo fs_usage Xcode > ~/XcodeFSUsage.txt". When I tried that, the
report file grew to about 9.5 Gigs before I started getting errors in
Terminal. I filed a bug a month and a half ago (radar #8783217) but it seems
to be untouched.
Here are my questions:
1. Is there something else I can try?
2. What dependencies is Xcode "checking"? Headers? Libraries? Is it building
a map of some sort? Where is this map stored?
3. Are there some utilities other than fs_usage that might help me dissect
the problem?
Thanks for any advice,
You should try Xcode 4. I imagine Apple aren't that bothered with
version 3 any more.