Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed.

地图定位

错误:使用CoreLocation获取地理位置信息,报错

Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"

 

解决方法:

1.确定模拟器(手机)已经联网并且允许程序获取地理位置

2.重置地理位置服务或者网络服务

 

PS:如果是模拟器就果断直接重置模拟器吧  IOS Simulator - Reset Content and Settings..。

原文地址:https://www.cnblogs.com/OIMM/p/5162208.html