How to solve GPS Xcode 4.1 (LION) error?

My project worked great on simulator + device,
but now, after upgrading to lion os and xcode 4.1 , I get this error when gps is active!

server did not accept client registration 68 

This is a gps based app and I'm nervous not to debug the app in the simulator!

Any idea to solve this problem?




UPDATE : Gps on Simulator does not work also on Xcode 3.2.6 + LION.




EDIT : Apple's answer to the error tracker:

After further investigation, it was determined that this is a known problem that is currently being investigated by engineering. This problem was reported in our database error under the original error identifier #. Thanks for reporting the bug. We sincerely appreciate your help in helping us and isolate errors.

+52
iphone osx-lion core-location
Jul 22 2018-11-17T00:
source share
4 answers

Xcode 4.2 solved this problem by adding a custom gps position!

The file is an XML:

 <?xml version="1.0"?> <gpx version="1.1" creator="Xcode"> <wpt lat="45,49939" lon="9,12114"> <name>Milano</name> </wpt> </gpx> 

You can add this file to your project or Create-> File-> GPX.

While you launch your application, activate the console and select your custom position file:

enter image description here

all. enjoy.

+8
Nov 07 2018-11-11T00:
source share

From the Big Nerd Ranch forum:

 @implementation CLLocationManager (TemporaryHack) - (void)hackLocationFix { CLLocation *location = [[CLLocation alloc] initWithLatitude:42 longitude:-50]; [[self delegate] locationManager:self didUpdateToLocation:location fromLocation:nil]; } - (void)hackHeadingFix { [[self delegate] locationManager:self didUpdateHeading:(id)@"That way.."]; } - (void)startUpdatingLocation { [self performSelector:@selector(hackLocationFix) withObject:nil afterDelay:0.1]; } - (void)startUpdatingHeading { [self performSelector:@selector(hackHeadingFix) withObject:nil afterDelay:0.1]; } @end 
+2
Aug 31 '11 at 18:05
source share

I ran into the same problem and, finding a solution, at least found a workaround: Testing CoreLocation on iPhone Simulator - this actually does not work, but in my case I just needed a dummy location.

To make it work, just copy the linked code to the header file and the link below

 #import <CoreLocation/CoreLocation.h> 

Like this:

 #import <CoreLocation/CoreLocation.h> #import "CoreLocation_Sim.h" 
+1
Jul 27 '11 at 20:00
source share

Please see http://pastebin.com/7hvFiXCg for a somewhat outdated version of BNR code. It includes support for CLHeading, among other settings. Enjoy it!

0
Sep 15 '11 at 3:29
source share



All Articles