• 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: Recompiling when header file changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recompiling when header file changes


  • Subject: Re: Recompiling when header file changes
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 4 Apr 2007 09:44:00 -0700


On Apr 4, 2007, at 9:21 AM, Jerry wrote:

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.


What kind of target is A?  Library, framework, ...?
Are A and B in the same project?
What kind of reference does target B use to refer to foo.h in A?  (Relative to Project, absolute, ...?)

When you "build," what do you build? A, B, or an umbrella target that builds both?

And what version of Xcode?

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

  • Follow-Ups:
    • Re: Recompiling when header file changes
      • From: Jerry <email@hidden>
References: 
 >Recompiling when header file changes (From: Jerry <email@hidden>)
 >Re: Recompiling when header file changes (From: Shawn Erickson <email@hidden>)
 >Re: Recompiling when header file changes (From: Andy Lee <email@hidden>)
 >Re: Recompiling when header file changes (From: Jerry <email@hidden>)

  • Prev by Date: Re: Recompiling when header file changes
  • Next by Date: Re: Recompiling when header file changes
  • Previous by thread: Re: Recompiling when header file changes
  • Next by thread: Re: Recompiling when header file changes
  • Index(es):
    • Date
    • Thread