美文网首页
【转载】【解决方法】Error Domain=kCLErrorD

【转载】【解决方法】Error Domain=kCLErrorD

作者: ldjhust | 来源:发表于2015-09-02 19:34 被阅读670次

转载:http://blog.csdn.net/zhyl8157121/article/details/40112919 

环境:XCODE6.0.1 + iPhone / iOS8

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

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

解决方法:

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

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

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

相关文章

网友评论

      本文标题:【转载】【解决方法】Error Domain=kCLErrorD

      本文链接:https://www.haomeiwen.com/subject/hnexcttx.html