Xcode 14 how to add complications to an existing WatchOS project?

The documentation here:

https://developer.apple.com/documentation/clockkit/creating_complications_for_your_watchos_app/enabling_complications_for_your_watchos_app

Is completely outdated and I find zero documentation on how to add complications to an existing WatchOS project.

The "Extension" no longer exists, and the settings in the target no longer exist either.

Hello! The preferred way to create complications starting in watchOS 9.0 is with WidgetKit. You can find documentation for how to get started here. https://developer.apple.com/documentation/widgetkit/creating-lock-screen-widgets-and-watch-complications

We also had two great sessions at WWDC22 that would be helpful to watch as well. https://developer.apple.com/videos/play/wwdc2022/10050/ https://developer.apple.com/videos/play/wwdc2022/10051

But my app needs to be compatible with WatchOS 8.

Xcode 14 how to add complications to an existing WatchOS project?
 
 
Q