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 with the ...
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