• 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: stop new header from being added to copy files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stop new header from being added to copy files?


  • Subject: Re: stop new header from being added to copy files?
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 1 Aug 2006 21:05:00 -0700


On Aug 1, 2006, at 8:17 PM, Nick Zitzmann wrote:

Every time I add a new C++ source and header to my project, the header gets added to one of the copy files build phases.  This is an application project, not a framework, so I don't want any headers to be copied.  Is there any way to stop this from happening?


Add a Copy Headers build phase to the top of the target. (Really!)


And then, once all the headers are in it, either a) remove the headers from the target, or b) select the Copy Headers phase, select all headers in the Detail view, and use the Role pulldown to mark them "Private" so they don't get copied to the app bundle when you build.

Your headers do not need to be in your target unless you want them processed somehow at build time.  Your sources can find your headers just fine, and Find in Project, Class Browser, indexing, etc. will all work if the headers are simply #included by target sources and/or are in the project—they don't have to be in the target.

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: stop new header from being added to copy files?
      • From: Ladd Van Tol <email@hidden>
    • Re: stop new header from being added to copy files?
      • From: "James W. Walker" <email@hidden>
References: 
 >stop new header from being added to copy files? (From: "James W. Walker" <email@hidden>)
 >Re: stop new header from being added to copy files? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: stop new header from being added to copy files?
  • Next by Date: Re: Problems with hdiutil
  • Previous by thread: Re: stop new header from being added to copy files?
  • Next by thread: Re: stop new header from being added to copy files?
  • Index(es):
    • Date
    • Thread