dev/Sorting/Thoughts

Journal of development Sorting Thoughts and more…

Static Code Analysis with Xcode

Posted on Jun 14, 2014 in iOS, Programming, Tools

Xcode comes with a static code analysis tool which can help to find the following issues:

  • Logic flaws, such as accessing uninitialized variables and dereferencing null pointers
  • Memory management flaws, such as leaking allocated memory
  • Dead store (unused variable) flaws
  • API-usage flaws that result from not following the policies required by the frameworks and libraries the project is using

see also Apple iOS Developer Guide

A nice feature is the presentation of the problem in separated steps, so it is really easy to reconstruct the detected problem.

xcode static

2 Comments

  1. The mentioned page “Apple iOS Developer Guide” does not exist anymore.

  2. Thx for the hint. I have updated the link.

Submit a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close