Book Image

Apple Watch App Development

By : Steven F. Daniel
Book Image

Apple Watch App Development

By: Steven F. Daniel

Overview of this book

With the increasing amount of new wearable devices hitting the market, wearables are the next wave of mobile technology. With the release of Apple's WatchKit SDK, a whole new world of exciting development possibilities hasopened up. Apple Watch App Development introduces you to the architecture and limitations of the Apple Watch platform, followed by an in-depth look at how to work with Xcode playgrounds. Here, we'll introduce you to the Swift programming language so you can quickly begin developing apps for the Apple Watch platform with the WatchKit framework and the Xcode Development IDE. We then discuss more advanced topics such as Notifiations, Glances, Closures, Tuples, Protocols, Apple pay, and using Swift playgrounds, with each concept backed up with example code that demonstrates how to properly execute it. We also show you how to package and deploy your Watch application to the Apple AppStore. By the end of this book, you will have a good understanding of how to develop apps for Apple Watch platform using the WatchKit framework and Swift 2.0.
Table of Contents (19 chapters)
Apple Watch App Development
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
Index

Profiling your application using Xcode Instruments


In this section, we will focus on how to effectively use Xcode Instruments within our applications to track down areas that could be affecting the overall running performance.

These types of issues could potentially cause an application to run slowly, or even crash on the user's iOS device. We will look at how to profile our Animation Example application using the Leaks instrument that will help track down any memory leaks within our code, which may not have been released correctly and may thus affect the application's overall performance.

To begin profiling your application using the Instruments application, follow these simple steps:

  1. Select the AnimationExample.xcodeproj file from the Chapter 10 folder in the accompanying code bundle.

  2. Next, ensure that the AnimationExample Xcode project file is open within the Xcode development IDE.

  3. Choose Profile from the Product menu, or alternatively, use the keyboard shortcut, Command + I:

  4. Once this option...