One of the most common problems in iPhone development is memory leaks. I found the Performance tool offered by Apple to be pretty useless at finding memory leaks. A much better tool is clang. It found 23 valid memory leaks in my first iphone app.
It does static analysis of the objective-c and produces a great report of any memory leaks. It's on the about page of the clang.livm.org site. After downloading and installing in the /Developer directory, add the path to the /etc/paths file, ie
>sudo vi /etc/paths
To use it, from the command-line, always do a clean by
>xcodebuild clean
Then do the build
>scan-build -k -v xcodebuild
It does static analysis of the objective-c and produces a great report of any memory leaks. It's on the about page of the clang.livm.org site. After downloading and installing in the /Developer directory, add the path to the /etc/paths file, ie
>sudo vi /etc/paths
To use it, from the command-line, always do a clean by
>xcodebuild clean
Then do the build
>scan-build -k -v xcodebuild
Leave a comment