Error [MKCoreLocationProvider] CLLocationManager(<CLLocationManager: 0x6000003b86d0>) for <MKCoreLocationProvider: 0x6000033b05a0> did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)"

since I set the MKUserTrackingMode to follow I get this error :

[MKCoreLocationProvider] CLLocationManager(<CLLocationManager: 0x6000003b86d0>) for <MKCoreLocationProvider: 0x6000033b05a0> did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)"

and the map doesn't track the location of the gpx file either.

What can you do there?

Code=1 corresponds to the CLError.Code.denied error. You should probably handle again the location authorization by using

func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
    // here you call the function that manages the location rights at the app launch
}
Error [MKCoreLocationProvider] CLLocationManager(&lt;CLLocationManager: 0x6000003b86d0&gt;) for &lt;MKCoreLocationProvider: 0x6000033b05a0&gt; did fail with error: Error Domain=kCLErrorDomain Code=1 "(null)"
 
 
Q