I'm seeing crash reports on my Apple watch where CLKComplicationServer.sharedInstance() returns nil.
The function signature states it returns an unwrapped optional Self
Code sample of where it is being called:
func session(session: WCSession, didReceiveUserInfo userInfo: [String : AnyObject]) {
NSLog("UserInfo recieved from iPhone\n%@", userInfo.description)
let theComplication = WatchComplication(withData: userInfo)
updateComplication(theComplication)
let complicationServer = CLKComplicationServer.sharedInstance()
for complication in complicationServer.activeComplications {
complicationServer.reloadTimelineForComplication(complication)
}
}
Anyone else seeing this? It seems to cause my complication to bug out and eventually stop working.