Working with watchOS Simulators

The idea of a multi-platform project won’t come as a surprise to Apple Watch developers, because a watchOS project must always have multiple platform targets: one for the iOS app, and at least one for watchOS. In fact, there are usually several watchOS targets: one for the app, one for a notification handler, and possibly another for a complication.

Because watchOS apps are bundled with iOS apps, you don’t use the same-name scheme as described for tvOS apps that have iOS counterparts. Instead, you use a naming convention for the bundle identifiers: for app com.app.foo.FooApp, the watch app would be com.app.foo.FooApp.watchkitapp and its extensions (notification handler and complication) would be com.app.foo.FooApp.watchkitextension ...

Get Xcode Treasures 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.