For the More Curious: Stripping

Debugging symbols are pretty big and can bloat your executable. A simple Cocoa application of mine weighs in at 262K with debug symbols, whereas without the symbols it is about 30K. Depending on the application, keeping debug symbols around might not be a bad thing. For a high-traffic web server application, we kept the debug symbols to make diagnosing production problems easier (and it really came in handy sometimes). If your program has 500 megs of graphics and support files, a couple of hundred K of debug symbols probably is not too bad. On the other hand, if you are writing smaller downloadable applications, the extra hundred K or a meg could be a significant barrier to your program being used. Having debug ...

Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.