O'Reilly logo

Objective-C Memory Management Essentials by Gibson Tang, Maxim Vasilkov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the LLVM / Clang Static Analyzer

The Instruments suite of tools is meant to be used when your app is running. However, sometimes, as the saying goes, an ounce of prevention is worth a pound of cure. So, before you pull up Instruments to debug your app during runtime, there is a good step that you should follow and which is performing a static analysis on your code base.

Static analysis is a mechanism where a collection of algorithms and techniques are used to analyze your source code to find bugs. This may sound like what you do during the compilation stage, but there is an important difference. The act of compiling your code will tell Xcode to check your code base for syntax errors and flag out any errors or warnings that it detects. Static ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required