Build product size
Build product size
- Subject: Build product size
- From: Brock Brandenberg <email@hidden>
- Date: Fri, 24 May 2002 12:12:53 -0500
Hi all.
I've noticed that there are a number of applications being released that
have a relatively large file size for the amount of work that they
actually do and for the amount of code that they must contain. And, the
culprit is typically the build setting "Generate debugging symbols" that
developers do not turn off, and that the "Deployment" build style does
not turn off for you.
While the Deployment build style in PB has a setting for
"COPY_PHASE_STRIP = YES", this does not strip the debugging symbols for
you if you are not doing a copy phase to another location for
installation (see the "Project Builder Build Settings" under the
"Project Builder Release Notes" for more info on these types of
settings). If you are simply building your app and taking it from the
build products directory when done, you're not getting the size benefit
of removing the debugging symbols.
While you can manually change the checkbox under the "GCC Compiler
Settings" of the "Build Settings" for each build, you can add a line to
both the Development build style and to the Deployment build style to
manage the debugging symbols setting for you.
Simply add "DEBUGGING_SYMBOLS = YES" to the "Build Settings" of the
"Development" build style and add "DEBUGGING_SYMBOLS = NO" to the
"Deployment" build style. In a similar manner, you can add optimization
settings too to turn them off for development and on for deployment.
Note that you may have to clean your target before rebuilding to insure
that all object files are removed and rebuilt to get rid of all the
debugging symbols.
For example, we have a typographical layout application (in its current
build state) complete with Mike Ferris' MOKit framework (built with
symbols off) embedded in its bundle, 33 PDF and TIF images for interface
icons, 11 nib files, help system files, a credits file, application and
document icons and of course, lots of source code and the app weighs in
at a meager 816kB when properly cleaned and built. With debugging
symbols, it's over 3MB.
Hope this helps some of you.
Brock Brandenberg
----- industrial design @ bergdesign.com ------
_______________________________________________
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.