Creating Your First WatchKit Extension

The traditional first task in any development environment is the ubiquitous “Hello, World!” example. For an Apple Watch app, a good “Hello, World!” will get some text on the screen and react to a button being tapped, so let’s start there. Open Xcode and create a new Xcode project by selecting File → New → Project. From the left column under watchOS, select Application, and then select the iOS App with WatchKit App template and click Next. For the name of the project, let’s use HelloWatch. Next, Xcode wants an organization name and identifier. What should you use? The answer depends on how you want to test the app.

The examples in this book will use the organization name The Pragmatic Bookshelf ...

Get Developing for Apple Watch, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.