I want to show current location of user, Sometimes it works fine but sometimes does not. when it does not work, I got this error message : Error Domain=kCLErrorDomain Code=0 " The operation couldn’t be completed. (kCLErrorDomain error 0.) I have read this solution [enter link description here][1] and this to fix this issue answered by MeM and also tried other solutions but did not work every time.
[1]: didFailWithError: Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)" . It does not work every time. How to fix this issue permanently. Any suggestion will be great. Thanks in advance.