Re: making a framework...
Re: making a framework...
- Subject: Re: making a framework...
- From: Chris Hanson <email@hidden>
- Date: Mon, 22 Aug 2005 14:01:08 -0700
On Aug 22, 2005, at 1:46 PM, Peter Lau wrote:
On Aug 22, 05, at 3:49 PM, Chris Hanson wrote:
Is your header a member of the target containing the Copy Headers
build phase that you're trying to drag to (not just the project)?
If the header file (.h) is not being reference in the project in
the "Files" section on my Project window, I cannot drag that file
(.h) from Finder to Copy Headers area in the "Target" section. The
project window just wouldn't accept the drag.
Xcode has two separate but related concepts: File references and
target membership. A project has file references. All of a
project's file references are listed in the Groups & Files pane of
your project window. A file reference can be a member of one or more
targets within a project. When a file reference is a member of a
target, that means it can be acted upon by one of that target's build
phases. (For example, the Copy Headers build phase.)
So it makes some sense that dragging a header file from the Finder to
a Copy Headers build phase would not work if the file doesn't have a
file reference in the project, or if the file reference isn't a
member of the build phase's target.
If I have the header file (.h) is already being reference in the
"Files" section on my Project window, that header file
automatically shows up in the Copy Headers build phase in "Target"
section. There's no need for another drag and drop (unless you
removed it previously for some reasons).
Right. When you add the header file to a project and make it a
member of a target, the header file will also be added to that
target's Copy Headers build phase if one exists. If a Copy Headers
build phase does not exist, or you did not make your header file a
member of a target, you'll just have some extra steps to go through
when you do want it to be copied.
-- 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