I cannot compile my project because of this error which I don't understand. It is an optional method on CLLocationManagerDelegate in a class defined like this:
final class LocationManager: NSObject, CLLocationManagerDelegate {
I tried other optional methods, no complains from the compiler. What is this about?
This is the method:
func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
}
And this is the error:
Objective-C method 'locationManager:didUpdateLocations:' provided by method
'locationManager(_:didUpdateLocations:)' conflicts with optional requirement method
'locationManager(_:didUpdateLocations:)' in protocol 'CLLocationManagerDelegate'
It occurs when building WatchKit Extension.