Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running strip automatically in PB



On Friday, September 26, 2003, at 10:56 AM, Marc Poirier wrote:

What's the deal with getting strip to happen on your target executables in
PB? Maybe I am just not clever, but I have looked at the PB release notes
about this stuff a few times now and I still don't get it. I can't figure
out what exactly COPY_PHASE_STRIP, STRIPFLAGS, SEPARATE_STRIP, etc. all
do.

We were just talking about this a short while ago...

COPY_PHASE_STRIP, if YES, will make PB strip the debugging symbols out of every piece of Mach-O code that PB copies into the application bundle by means of "copy files" build phases. This is very useful if, for example, you built a framework with debugging symbols, and you want to embed the framework into an application bundle. If the framework wasn't stripped, then it would fill the application bundle with debugging symbols, which is unacceptable for shipping applications. If you are not copying anything into the application bundle, then COPY_PHASE_STRIP does nothing.

STRIPFLAGS and SEPARATE_STRIP control stripping the binary, but they only work if you're doing an install build.

If you're not doing an install build, but you still want to strip something after it's built, then you have to do it in a shell script build phase if you don't want to do it manually. Check the archives; I recently sent a message to the list explaining how to write the shell code.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.