Sometimes CLKComplicationServer.sharedInstance().activeComplications returns nil.
Documentation states:
Documentation states:
Under which circumstances can it be nil?This property contains an array of CLKComplication objects, each of which represents a version of your complication currently displayed on the clock face. This array typically has no entries or only one entry, but it may have multiple entries if your complication is installed in more than one slot on the clock face.