No complication configuration in xcode for watchOS 9
Asked Answered
C

2

6

I added a new watch app for an existing iOS App that is build with react native. I never developed a watch app before. I read everywhere that this should create two targets, the watch App and the App extension. But only a watch app gets created.

Now I want to add a complication for this watch app. I tried to follow the steps here and here. It says that on the general tab of the extension (which is not present in my project) I should configure the Complication Configuration. But this option is just not present.

the options that are available

Was this changed with watchOS 9 or am I missing something else?

Carney answered 26/10, 2022 at 17:40 Comment(0)
M
11

I’m having a similar issue after creating a watchOS app in Xcode 13 without an initial complication. Fortunately, I was able to work around the missing configuration UI by manually setting the values.

Assuming you’ve followed these steps of creating the ComplicationController class and “Complication” placeholder in Assets,

Go to Project -> watch app target -> Build Settings

  1. Set “Complication Principal Class” to $(PRODUCT_MODULE_NAME).ComplicationController under Info.plist Values
  2. Set “Watch Complication Name” to Complication under Asset Catalog Compiler - Options
Macula answered 8/11, 2022 at 1:40 Comment(0)
O
1

I am also new to watch kit Complication and also start with the docs @jrenk provided, and then I found WidgetKit is replacing ClockKit in WWDC 2022. You should add a WidgetKit target in watchOS project.

ref: https://developer.apple.com/documentation/WidgetKit/Converting-A-ClockKit-App

Ogee answered 8/3, 2023 at 17:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.