I wrote a simple program, which uses the Cocoa location services to get the user's current position. It works without a problem on a MacBook Pro. However, it does not on a MacBook Air.
I am left with a Operation could not be completed. (kCLErrorDomain error 1.)
code, and there's many things I have already tried to fix it (e.g. setting permissions). Upon ticking the checkbox for the application in the privacy settings to enable the location services for the application, it disappears as soon as I launch the application.
To initialize the services I use startUpdatingLocation
method of the CLLocationManager class.
Is there any way to solve the issue?