Re: stop new header from being added to copy files?
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.
|
_______________________________________________
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