O'Reilly logo

Xcode 4 iOS Development by Steven F. Daniel

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

Time for action – configuring your project to perform automatic Static Analysis

Xcode offers you an option to automatically analyze your code whenever your project is built. In this section, we will look at how we can configure our project by following these simple steps.

To set up your project to use the Static Analyzer, you will need to adjust the settings for your project workspace as shown below:

  1. In the project navigator, select and highlight your project.
  2. Select and click on your target.
  3. Select the Build Settings tab.
  4. Scroll down to the Run Static Analyzer.
  5. Select the Yes option from the list. The default option is No.

Now that you have changed the default compiler to use the Static Analyzer, your project will start to use this when you compile ...

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