美文网首页
模拟器对GPS定位的小脾气

模拟器对GPS定位的小脾气

作者: Manba_小洛 | 来源:发表于2016-08-07 20:42 被阅读34次

获取定位信息报错

The operation couldn’t be completed. (kCLErrorDomain error 0.)
```


解决方案

  • 1.Xcode->Product->Scheme->Edit Scheme->Run->option->Allow Location Simulation(不允许模拟器获取位置信息), 去掉打勾!
取消
  • 2.重置模拟器: Simulator->Reset Content adn Settings
重置
  • 3.再次按照第一步骤勾选允许获取位置信息, 然后就搞定了~~~

相关文章

网友评论

      本文标题:模拟器对GPS定位的小脾气

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