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

Re: Strip not working


  • Subject: Re: Strip not working
  • From: leenoori <email@hidden>
  • Date: Sun, 10 Dec 2006 12:50:50 +0100

El 10/12/2006, a las 12:07, Trygve Inda escribió:
I have to add a Build Phase script:

#!/bin/bash
strip "$TARGET_BUILD_DIR/$EXECUTABLE_PATH"

Because no matter what strip settings I use in XCode, they never work. Are
they know to be broken? Separate Strip checkbox does nothing it seems.

I also find the checkboxes to be a bit mysterious, so I strip manually as you have done. These are the settings I use on my release builds:


DEAD_CODE_STRIPPING = YES
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
DEPLOYMENT_POSTPROCESSING = YES
STRIP_INSTALLED_PRODUCT = NO
SEPARATE_STRIP = NO
STRIP_STYLE = all
STRIPFLAGS =
COPY_PHASE_STRIP = NO

Compared with my debug builds:

DEAD_CODE_STRIPPING = NO
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
DEPLOYMENT_POSTPROCESSING = NO
STRIP_INSTALLED_PRODUCT =
SEPARATE_STRIP = NO
STRIP_STYLE = all
STRIPFLAGS =
COPY_PHASE_STRIP = NO

I invoke "strip" with the -S, -x, and -r switches.

Also, how then can I make a Build Phase conditional on the Build
Configuration so the strip script can be only in the Release build?

You can't make an entire phase conditional, but you can check the build configuration from inside the script. One way of doing it would be:


if [ "${DEPLOYMENT_POSTPROCESSING}" = "YES" ]; then

  echo "do something"

else

  echo "do something else"

fi

Note that you can check any build setting in this way, not just DEPLOYMENT_POSTPROCESSING.




_______________________________________________ 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 not working (From: Trygve Inda <email@hidden>)

  • Prev by Date: Strip not working
  • Next by Date: Using an alternate framework search path in the Developer Tools
  • Previous by thread: Strip not working
  • Next by thread: Re: Strip not working
  • Index(es):
    • Date
    • Thread