What causes (and how can I fix) this odd Core Location error?

后端 未结 7 1578
太阳男子
太阳男子 2021-02-05 12:42

ERROR,Generic,Time,320195751.128,Function,\"void CLClientHandleRegistrationTimerExpiry(__CFRunLoopTimer*, void*)\",Registration timer expired, but client is

7条回答
  •  我在风中等你
    2021-02-05 13:16

    I got the same error and figured out that it was because I had forgotten to mention that the class implements the CLLocationManagerDelegate in the .h file.

    Adding the CLLocationManagerDelegate to the header file, and the following line to point to the delegate solved the error for me.

    locationManager.delegate = self;
    [locationManager startUpdatingHeading];
    

提交回复
热议问题