• 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: Strip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Strip
      • From: Rush Manbert <email@hidden>
References: 
 >Strip (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Help needed with install path and bundling libraries
  • Next by Date: Re: Strip
  • Previous by thread: Re: Strip (Question for Chris)
  • Next by thread: Re: Strip
  • Index(es):
    • Date
    • Thread