Re: XCode dependency handling
Re: XCode dependency handling
- Subject: Re: XCode dependency handling
- From: John Daniel <email@hidden>
- Date: Sat, 3 Feb 2007 09:37:48 -0600
On Feb 3, 2007, at 12:36 AM, Douglas Norton wrote:
I have seen something similar in a project of mine. The header
files are named differently to the source code that they match too,
and they do not get saved automatically before a build, though I
have that preference set.
You might have to switch that preference setting on and off a couple
of times and quit Xcode cleanly - don't just wait for it to crash.
Sometimes the preferences get confused.
When I switch back to the header after the incomplete build, the
icon is still dark on the popup menu. When I manually save them,
and rebuild, the correct build happens.
This sounds like a different problem than that described by the
original message. In your case, your files just aren't saved. You've
made all the changes, but those changes are in open files (dark
icons) that haven't been saved yet. Until you save them, you are just
building with the old versions on disk.
It seems the mod date checking to determine build dependency is
working properly, just that the project does not know that source
files in the project depend on that header.
Xcode's dependency handling isn't very robust. I tend to have
projects that consist of a moderate sized application with 3-4 static
library projects. I had some really strange stuff with Xcode when I
would change a header in one of the libraries. It wouldn't update
dependent files in the application and it would build a truncated
library that then wouldn't link properly. I would up creating an
extra script build phase to have tools like makedepend check the
dependencies instead. The was in Xcode 2.3. I haven't noticed the
problem yet in Xcode 2.4, but I am also not updating those libraries
as much anymore either.
As an IDE, Xcode is still a bit far behind Codewarrior circa 1997.
Still, Cocoa and Interface Builder are so much better than Powerplant
ever was that I don't complain (much).
John
_______________________________________________
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