error: server did not accept client registration 68

£可爱£侵袭症+ 提交于 2019-11-29 17:40:00

问题


I am trying to build and run the WhereamI.app example of the Big Nerd Ranch book: iOS Programming, chapter4.

Compiling works just fine and it runs but the output to console is: server did not accept client registration 68, instead of providing the current GPS position and altitude.

I am runing Xcode 4.1 on OS X Lion with the 4.3 SDK.

There is nothing fancy at all in the code. JUst and instance of Corelocation manager and a simple delegation to WhereAmI.app

Any clues?


回答1:


I had the same problem. Apparently it's a bug in Xcode 4.1. There's some code on their forum you can add that fixes it:

http://forums.bignerdranch.com/viewtopic.php?f=79&t=2069




回答2:


Like Brian Liang, I don't think the code offered in the big nerd ranch forums is a fix, per se, because if you use that code, you eliminate not only the application crash "server did not accept client registration 68", you also render the application useless, because the workaround overrides the method that a delegate for CLLocationManager would use to be aware of location updates; overrides it in a way that basically says always update the location to lat:42, long:-50. So the forum code snippet mentioned here does eliminate the application crash, but it makes all location updates amount to the same coordinates, so you really can't use the application anymore. Not a fix in any grander sense of the word. Kind of let down really. Maybe this is just a simulator problem and not an issue on an actual phone?




回答3:


I had the same issue. Just updated to the latest version of xcode (4.2.1 as of writing) and used the iOS 5.0 SDK instead of 4.3, it works fine now.



来源:https://stackoverflow.com/questions/7003155/error-server-did-not-accept-client-registration-68

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!