[error]Error Domain=kCLErrorDomain Code=5 “The operation couldn’t be completed. (kCLErrorDomain error 5.)

Xcode shows you error, even though bluetooth or location flag is “ON”.
「Error Domain=kCLErrorDomain Code=5 “The operation couldn’t be completed. (kCLErrorDomain error 5.)」

How to fix.

  • Reboot your iPhone(or iPad).

I don’t know why but it will fix.