skip to Main Content

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?

2

Answers


  1. 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
    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search