• 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: Subdirectories in Framework Public Header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subdirectories in Framework Public Header


  • Subject: Re: Subdirectories in Framework Public Header
  • From: Jonathan Prescott <email@hidden>
  • Date: Sun, 4 May 2008 13:52:22 -0400

Should have said "added them to the target," so they would be copied during the Copy Headers phase.

Also, if you wanted to, you could add all the header files to the target, and set the role for those that are going into the macosx folder as "Project" rather than "Public" or "Private." Then, Xcode won't do anything with them in the copy headers phase. That way, if you import the headers source file from an existing source directory (from your open source distribution), you can add them to the target, and then go in and change the roles for those that will live in Headers and PrivateHeaders to "public" or "private" as required.

Jonathan

On May 4, 2008, at 1:23 PM, Jonathan Prescott wrote:

When I was setting up Boost as a framework, I did it in two phases: for those files that would live in MyFramework.framework/ Headers, I added them to the project, and let Xcode copy them where they were supposed to go. This also made sure the Headers (and the PrivateHeaders) directory was created. I then added a Run Script build phase with a script to make the macosx directory (mkdir -p works really well!), then copied those header files via the script

Jonathan

On May 4, 2008, at 10:46 AM, Steve Sisak wrote:

Sorry if this is a duplicate -- I posted it a couple days ago and never saw it come back from the list.

----------

I know a recipe for this has been posted in the past year, but my google-foo is failing me in finding it.

I'm in the attempting to package an open source library which has subdirectories in its public headers as a framework and trying to figure out how to set up the Copy Headers phase to reflect this.

In other words, I've got:

./headers/foo.h
./headers/macosx/foo.h

and want to end up with

MyFramework.framework/Headers/foo.h
MyFramework.framework/Headers/macosx/foo.h

At the moment Xcode is trying to copy both headers into MyFramework.framework/Headers/ and complaining that there are 2 rules to copy the same file.

How do I convince Xcode to create and copy to the macosx subdirectory of MyFramework.framework/Headers/ so that I can

#include <MyFramework/macosx/foo.h>

To get the Mac OS X specific version.

Thanks,

-Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Subdirectories in Framework Public Header (From: Steve Sisak <email@hidden>)
 >Re: Subdirectories in Framework Public Header (From: Jonathan Prescott <email@hidden>)

  • Prev by Date: Re: Subdirectories in Framework Public Header
  • Next by Date: Re: typechecking
  • Previous by thread: Re: Subdirectories in Framework Public Header
  • Next by thread: Re: Subdirectories in Framework Public Header
  • Index(es):
    • Date
    • Thread