Re: Xcode style deployment: debug-symbols?
Re: Xcode style deployment: debug-symbols?
- Subject: Re: Xcode style deployment: debug-symbols?
- From: Rick Jansen <email@hidden>
- Date: Wed, 10 Dec 2003 12:08:20 +0100
Sherm Pendley wrote:
On Dec 7, 2003, at 12:35 PM, Rick Jansen wrote:
When I build my product with style "deployment" it seems
debug-symbols is still "on":
Yes - but "COPY_PHASE_STRIP" is set to "on", as well. So, even though
the compiler includes debug symbols when it builds and links the
executable, they *should* be getting stripped out when the executable is
copied into the .app bundle.
Have you compared the executable size produced by using "development"
vs. "deployment?" The second should result in a noticeably smaller binary.
Yes I did, and no there's no significant reduction in the size of the
binary (3%). Also, the gcc -g option is still given to gcc in Deployment
mode, causing gcc to generate debug symbols. The debugger still works
for an app that was built with the Deployment style.
I have not been able to find any checkbox still on for debug symbols.
There are checkboxes for "Generate debugging symbols" in:
Current settings
Common settings
GNU C/ObjC Compiler
They're all "off", but still -g is passed to gcc.
There is another checkbox option in Deployment style:
Standard build settings:Deployment post-processing
This settings was "off"(!). When I check it, the size of the binary indeed
is much smaller, only about 30% of the original size left! And this also
causes GDB to have no grip on the app when you execute it using the debugger.
All very well, but it seems I cannot now build a proper deployment style
application with Xcode? I don't care about the size on disk really, but I
certainly don't want debugging symbols in distributed apps.
--
Rick Jansen
__
email@hidden
http://dropmix.xs4all.nl/rick/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.