Re: Strip headers from imbedded frameworks
Re: Strip headers from imbedded frameworks
- Subject: Re: Strip headers from imbedded frameworks
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 3 Jun 2004 19:50:29 -0600
On Jun 3, 2004, at 3:41 PM, Daryl Thachuk wrote:
Is there anyway to strip headers from application imbedded frameworks?
I would like to keep these API's private. I thought maybe marking the
headers as Private in Xcode would do this but no.
The only way to do this is to use a shell script build phase. I use the
"find" command to automate this for all frameworks:
if [ -d "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" ]; then
find "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -name
'Headers' \( -type d -or -type l \) -exec rm -rf {} \; -prune ;
find "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -name
'PrivateHeaders' \( -type d -or -type l \) -exec rm -rf {} \; -prune ;
fi
The quotation marks are very important! Don't remove them. However, you
can probably change the -exec argument to -delete; I'm just used to
calling -exec because it's more portable.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request
"To announce that there must be no criticism of the president, or that
we are to stand by the president, right or wrong, is not only
unpatriotic and servile, but is morally treasonable to the American
public." - Theodore Roosevelt
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.