Book Image

Learning Xcode 8

By : Jak Tiano
Book Image

Learning Xcode 8

By: Jak Tiano

Overview of this book

Over the last few years, we’ve seen a breakthrough in mobile computing and the birth of world-changing mobile apps. With a reputation as one of the most user-centric and developer-friendly platforms, iOS is the best place to launch your next great app idea. As the official tool to create iOS applications, Xcode is chock full of features aimed at making a developer’s job easier, faster, and more fun. This book will take you from complete novice to a published app developer, and covers every step in between. You’ll learn the basics of iOS application development by taking a guided tour through the Xcode software and Swift programming language, before putting that knowledge to use by building your first app called “Snippets.” Over the course of the book, you will continue to explore the many facets of iOS development in Xcode by adding new features to your app, integrating gestures and sensors, and even creating an Apple Watch companion app. You’ll also learn how to use the debugging tools, write unit tests, and optimize and distribute your app. By the time you make it to the end of this book, you will have successfully built and published your first iOS application.
Table of Contents (23 chapters)
Learning Xcode 8
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learnt about the subtle art of testing your code with more code. It's a very useful skill, and can save plenty of headaches throughout the development process. We looked at what unit tests are and why they're important, and then spent some time learning how to use them in Xcode. Once we were comfortable, we added unit tests to our Snippets project, and wrote a somewhat more complicated test that worked with Core Data. From there, we talked about code coverage and learnt how to use Xcode to visualize how thorough our tests are on our codebase. Finally, we dipped our toes into the water of UI testing in Xcode 7, and tested a button in our Snippets app.

In the next chapter, we continue the theme of cleaning up our project, and making the code safer and less prone to failure. We'll be covering the many debugging tools available in Xcode 8 that help you make sure that your apps are running smoothly and error free. Combined with the testing features we covered in this...