swift error "cannot assign value of type 'interface controller' to type HKWorkoutSessionDelegate'
问题 I have an error message arising for watchOS code to measure heart rate in HealthKit, that is working fine in a different Xcode project. I've compared the code and they seem the same. the file is InterfaceController.swift. For the line 'self.workoutsession?.delegate = self' I get the red flag error "cannot assign value of type 'interface controller' to type HKWorkoutSessionDelegate" Any ideas? Here is the code for the function. The last para is the function with the error (The prior code is