Static code analysis is a great way to find/prevent bugs, and the Clang static analyzer has been a part of Xcode since version 3.2.
The Clang static analyzer has been a part of Xcode for quite some time, and provides a great way tool for finding/preventing potential issues.
Recently I came across another open source static code analysis tool called OCLint that works with Objective-C, C and C++.
If you have some custom rules that you’d like to check for such as checking for overly long methods/complex code and other bad practices than then you may want to give it a look.
You can find the documentation for changing the rules here.
I tested this tool from the command line, but there is an experiemental helper program for working with Xcode.
If you take a look at the rules directory of the source code you can play around with and tweak rules.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.