Re: Recompiling when header file changes
Re: Recompiling when header file changes
- Subject: Re: Recompiling when header file changes
- From: Jerry <email@hidden>
- Date: Wed, 4 Apr 2007 17:21:21 +0100
On 4 Apr 2007, at 16:11, Andy Lee wrote:
On Apr 4, 2007, at 3:34 AM, Jerry wrote:
When I change a header file in my project, Xcode doesn't compile
the files which include that header. I end up, many times each
day, searching for all includes of the header and manually
recompiling the affected files. In bad cases I have to do a clean
build, which wastes over an hour. Does anyone have any ideas of
how I can move my build system into the twentieth century?
What if you select it, remove it from the project (make sure Xcode
doesn't delete the file -- just remove it from the project), and
drag it back into the project?
Makes no difference.
Actually, while trying to recreate the problem, I realized that I've
misled you in the description - I think the problem is with multiple
targets. If I have:
Target A, contains foo.h and foo.cpp
Target B depends on target A, contains bar.cpp which includes foo.h
then when I change foo.h and build, foo.cpp gets compiled but bar.cpp
doesn't. It looks like building target A effectively untouches foo.h.
Jerry
_______________________________________________
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