Re: Strip
Re: Strip
- Subject: Re: Strip
- From: Rush Manbert <email@hidden>
- Date: Thu, 29 Sep 2005 10:25:04 -0700
Gerriet M. Denkmann wrote:
How can I induce Xcode (2.0) to automatically strip the result of a
Deployment build?
I think the answer is to add a "new shell script build phase" to your
target.
Here is the script (using bin/sh) that I am using for a C++ Command Line
Tool:
if [ ${BUILD_STYLE} == "Release" ]
then
ls -l ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
strip -u -r ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
ls -l ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
else
echo Nothing to do unless this is a Release build
fi
The ls -l is just paranoia. I want to see the change in file size.
This is based on examining the way Xcode sets up the environment before
running the script. It also assumes that the target build style is
called "Release". If you are developing an Application, or a framework,
or something else, then it may be more complicated, but this works for me.
- Rush
_______________________________________________
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: | |
| >Strip (From: "Gerriet M. Denkmann" <email@hidden>) |