Thursday, April 30, 2009

Clang Checker

I've recently come across a really nice alias for running the Clang Checker from the command line and I thought I should share it with everyone:

alias scan-build='xcodebuild clean && /usr/local/bin/checker-0.142/scan-build -analyze-headers -v -v -v -V xcodebuild -activetarget -sdk iphoneos2.2.1'

For those that don't know, Clang is great command line utility that will scan your Xcode project for memory and other bugs that you may not catch.

Thanks to Maior and InsertWittyName on #iphonedev (freenode IRC server).