21Instruments
In Chapter 4, you learned about using the debugger to find and fix problems in your code. Now we’re going to look at other tools available to iOS programmers and how to integrate them into application development.
The Static Analyzer
There is a memory leak in your TouchTracker application. When the user double-taps, the screen clears. At this point, all instances of Line should be deallocated, but they aren’t. In the first part of this chapter, you’ll examine this leak with Xcode’s static analyzer.
When you build an application, you can ask Xcode to analyze your code. The static analyzer then makes educated guesses about what would happen if that code were to be executed and informs you of potential problems, like a memory leak. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access