Re: Stripping headers from embedded frameworks
Re: Stripping headers from embedded frameworks
- Subject: Re: Stripping headers from embedded frameworks
- From: Pete Yandell <email@hidden>
- Date: Wed, 21 May 2003 00:00:40 +1000
On Tuesday, May 20, 2003, at 12:07 PM, Andrew Duncan wrote:
I have a PB project which uses a set of 6 embedded frameworks....
The final built application includes all the headers...
I'm left wondering if there's a way to have them stripped out at the
end of
the build process, or to prevent them from being copied in in the first
place.
I add a shell script build phase to my projects and do the following:
cd "${BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}"
# This cleans out any headers that were copied to our binary
find . -name Headers -type d -exec rm -r {} \;
find . -name Headers -exec rm {} \;
That basically goes through the final executable looking for
directories and aliases called "Headers" and deletes them all.
I should really be a little more cautious and delete the specific
directories in included frameworks just in case there's something else
called Headers that I don't want to delete, but I haven't run into
trouble yet. :)
Pete Yandell
http://pete.yandell.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.