There’s a fantastic iPhone debugging tool in development called Clang Checker. It does deep code analysis and can find memory leaks and other problems by following potential code paths. To use it, just download the package and uncompress it. The CD to your Xcode project directory and run it like:

xcodebuild clean; ~/development/checker-0.210/scan-build -k -V -warn-objc-missing-dealloc xcodebuild -sdk iphonesimulator2.2

If you have errors, a nicely formatted webpage opens to shows them.

Other notes:

- Run scan-build –help to see the other tests you can add in.

- Make the argument to -sdk match one of your SDKs, which you can list via:

xcodebuild -showsdks


Bookmark and Share

Tags: ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>