Re: Building a framework w/o headers
Re: Building a framework w/o headers
- Subject: Re: Building a framework w/o headers
- From: Kurt Revis <email@hidden>
- Date: Thu, 1 Nov 2001 18:31:52 -0800
On Thursday, November 1, 2001, at 05:50 PM, Chris Boot wrote:
I have a framework that several of my projects use, and packages its
headers
in with itself when it is built. What I would like to do is have the
headers included in the framework when it is built, but not have them
when
it's installed (through pbxbuild install). Is such a thing possible?
First off: You are probably better off asking this question on the
projectbuilder-users list.
http://lists.apple.com/mailman/listinfo/projectbuilder-users
I don't think there is any easy way to do this from within PB. (You
could create a shell script build phase, and point it at a script which
deletes the headers. However, your script would then always run, no
matter what kind of build it was. You'd need to make sure that that
script only does its work for install builds, based on a build variable
or something else.)
Since you're using pbxbuild, you are already at the command line. Why
not just write a shell script that runs pbxbuild, and then removes the
headers from the installed copy? Something like this should do it:
pbxbuild install
cd /Path/To/My/Installed/Framework.framework
find . -name Headers -exec rm -rf {} \; -prune
(You can of course get more elaborate, but this is the basic method.)
You may find that the above doesn't work because your installed
framework has the permissions set so that no one can write to any of its
files or directories. You then won't have permission to remove the
files. To work around this, change the build setting
INSTALL_MODE_FLAG ... see the Project Builder Build Settings release
note.
--
Kurt Revis
email@hidden