O'Reilly logo

More iPhone Development with Swift: Exploring the iOS SDK by David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

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

Chapter    15

Unit Testing, Debugging, and Instruments

One of the fundamental truths of computer programming (and life) is that not everything works perfectly. No matter how much you plan and no matter how long you’ve been programming, it’s rare for an application you write to work perfectly the first time and then forever under all circumstances and possible uses. Knowing how to properly architect your application and write well-formed code is important. Knowing how to find out why things aren’t working the way they’re supposed to, and fixing them, is equally important.

There are three techniques you can leverage to help identify and solve these problems: unit testing, debugging, and profiling.

  • Unit testing is the idea of isolating the smallest ...

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