The iPhone App--WatchKit Extension Relationship
I know what youâre thinking. That was a lot of setup for a little âHello, World!â app. Why so complicated? The reason lies in that WatchKit extension you created. Itâs a lot like other extensions on iOSâsharing, activity, photo editing, and the likeâin that itâs basically a tiny app that lives inside your main iPhone app. Unlike the other app extensions, the WatchKit app doesnât run on your phone. In fact, itâs not even compiled against the iOS SDK. Instead, itâs copied to the watch when you install the watch app, and itâs run on the watch. Instead of iOS, itâs built for watchOS. The WatchKit extension is responsible for all communication between your phone and the watch, ...
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.