So in my absence I wrapped my first iPhone app. I sent off a build for review last Monday and I’m hoping to hear back from Apple sometime this or next week.

Today, I thought I’d share about a really neat debugging tool called Clang Static Analyzer. Basically, this tool runs through your code and points out potential bugs (memory leaks, logic errors, etc.). It’s powerful and easy to use, so I’d totally recommend adding it into your pipeline.

These were the steps that worked for me (repost from here):


  1. Download the latest build from:
  2. Extract and move the contents of the archive to a directory of your choice.
    (I use “/Developer/clang/”)
  3. Launch Terminal and input this command: sudo nano /etc/paths
  4. Add Clang as a system path by entering the directory location.
  5. Press ‘Ctrl-X’ to exit and then ‘Y’ to save.


  1. Launch Xcode, open your project, and run “Build > Clean All Targets.”
  2. Launch Terminal, navigate to your project directory, and input this command:
    scan-build -k -v -V xcodebuild -configuration Debug -sdk iphonesimulator###
    (Substituting “###” with your target OS. e.g. “2.2”)

Assuming everything works, Safari should then open a report highlighting the possible bugs in your project!

For a video demonstration, see Stanford’s CS193P Lecture 11 from May 6, 2009 (05:00-17:47).

And here’s a preview of my app: iFist

Joel Spolsky and co. (Stack Overflow) are hosting a new programming conference/tour (LA->London) this October to celebrate their website being totally awesome. They’re planning talks by some smart people on some new(ish) technologies and there’ll be free lunch ($100)! I’m a huge fan of these guys, so I’m confident that it’ll be a good time [at least in LA :].

Stack Overflow DevDays @ Joel on Software

P.S. Dan Grigsby is another smartie and recently posted this Best Of- feature:

Best of Stack Overflow For iPhone Devs @ Mobile Orchard

P.S.S. Don’t miss the “Xcode tips & tricks you wish you knew about!”

Today, I came across a massive collection of iPhone Dev related bookmarks and felt compelled to stop everything I was doing to post it on my blog.

One bookmark I was particularly happy to see was for the open source game engine Cocos2D-iPhone. A few weeks ago, I dived into the framework and found the dev community to be nothing less than extremely welcoming and talented. I’m hoping with a little more knowledge I’ll be able to contribute something rad to such a cool project.

43 iPhone Development Resources @ TheAppleBlog