是什么原因(以及如何修复)这个奇怪的核心位置错误? [英] What causes (and how can I fix) this odd Core Location error?

查看:98
本文介绍了是什么原因(以及如何修复)这个奇怪的核心位置错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


ERROR,Generic,Time,320195751.128,Function,void
CLClientHandleRegistrationTimerExpiry(__ CFRunLoopTimer *,
void *),注册计时器已过期,
但是客户端仍然正在注册!

ERROR,Generic,Time,320195751.128,Function,"void CLClientHandleRegistrationTimerExpiry(__CFRunLoopTimer*, void*)",Registration timer expired, but client is still registering!

我能够在更广泛的互联网上挖掘出这个问题的几个提及,没有人有用的信息。这是上下文:

There are only a few mentions of this problem that I was able to dig up in the wider Internet, and nobody has useful info. Here's the context:

我有一个应用程序通过CLLocationManager的startUpdatingLocation方法监视设备的位置。它开始监视,运行一段时间,然后在调试输出中弹出此消息。从那时起,不再提供位置更新。

I have an app that monitors the device's location via CLLocationManager's startUpdatingLocation method. It starts monitoring, runs for a little while, then this message pops up in the debug output. From that point forward, no more location updates are delivered.

此错误会导致应用程序的位置功能失效,而我对可能存在的内容感到不知所措。造成它。它甚至在结尾都有一个感叹号,这意味着它显然是一个令人兴奋的错误。

This error is killing the location functionality of the app, and I'm at a loss as to what may be causing it. It even has an exclamation point at the end, which means it's clearly an exciting error.

更新:

虽然我从来没有找到问题的解决方案,或者弄清楚为什么它首先发生,我也失去了重现它的能力。这似乎发生在我做了很多事情的一段时间内,包括代码结构的一般变化,然后更新到iOS 5 beta。似乎有些东西让我沉默。

Update:
Though I never found a solution to the problem, or figured out why it happens in the first place, I've also lost the ability to reproduce it. This seems to have happened during some period of time in which I did many things, including a general change in code structure followed by update to the iOS 5 beta. Something there seems to have silenced the issue for me.

推荐答案

你实施了吗?

- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error 

这是否能抓住它?

你需要在正常运行中检查kCLErrorNetwork,kCLErrorDenied,kCLErrorHeadingFailure和kCLErrorLocationUnknown但是我想知道代表是否仍然可以捕获其他错误?

You need to check for kCLErrorNetwork, kCLErrorDenied, kCLErrorHeadingFailure and kCLErrorLocationUnknown in the normal run of things but I'm wondering if there are other errors that the delegate can still catch?

这可以让您有机会停止然后重新启动位置服务。

This could give you the opportunity to stop and then restart location services.

这篇关于是什么原因(以及如何修复)这个奇怪的核心位置错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆