A friend told me about static analysis in Xcode today, and that its a feature that is not enabled by default. The “Build and Analyze” menu option will fire off the extra inspection, but here is how to add an extra build target:

http://developer.apple.com/mac/library/featuredarticles/StaticAnalysis/index.html

This extra level of debugging will keep an eye out for wasted memory allocation and initialisation errors.

« »