swiftwatchkitwatchosapple-watch-complicationclockkit

watchOS does not enter ComplicationController


I want to develop a simple complication as my first watchOS project. I've set everything up as the screenshot shows:

set up of data source class

But When I set a breakpoint inside ComplicationController.swift, it will not be called. Therefore, my complication does not fill with any data I supply. I set a breakpoint to all implemented methods (e.g. getLocalizableSampleTemplate) in that class, but the code is just running and the complication does not fill with the supplied data.

What am I doing wrong? My class conforms to CLKComplicationDataSource (I left all the default implementation).

ComplicationController


Solution

  • It works if I add $(PRODUCT_MODULE_NAME). in front of the data source class inside the complication configuration.

    enter image description here