Re: Strip not working
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