Re: Including Headers in a Carbon Framework
Re: Including Headers in a Carbon Framework
- Subject: Re: Including Headers in a Carbon Framework
- From: Chris Hanson <email@hidden>
- Date: Tue, 25 Sep 2007 19:11:15 -0700
On Sep 25, 2007, at 4:05 PM, Matthew Tobiasz wrote: What do I need to do in order to have the header files added to my framework?
You need to:
First ensure the headers you want to make available are listed in your framework target's Copy Headers build phase, creating header references. It sounds like you've done this part.
Then set the role for the header references in your framework target's Copy Headers build phase to either Public or Private; by default they will be set to Project. Public headers get copied to a framework's Headers directory, while private headers get copied to a framework's PrivateHeaders directory. In both cases you should use framework-style include/import directives to incorporate their content, e.g. <FrameworkName/HeaderName.h>. Project headers, on the other hand, are not copied at all and are only available within a project and should be referenced using local-style include/import directives, e.g. "HeaderName.h".
You can set a header reference's role by using Get Info on it (or on a selection of multiple header references) and changing the appropriate pop-up. Or you can do it by highlighting the Copy Headers build phase and using the Role column in the detail view to the right of the Groups & Files tree (choose Show Details if you're using Condensed; it's hidden by default) to manipulate individual header references.
-- 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