views:

1393

answers:

1

HI , i m using CoreLocation Framework and getting the location. in Simulator it is working fine . but when i am deploying the app in my iPod Touch 2G with OS 2.2.1 .. it is giving my a strange error ..

Error Domain=kCLErrorDomain Code=0 "Operation could not be completed.(kCLErrorDomain error 0.)"

What to do ?? can anyone help ??

+3  A: 

If you don't have WiFi switched on, the iPod has no way of determining the current location. Even if you do, not all WiFi networks are supported for GeoLocation.

iKenndac
i have a wifi network and it is working fine .. everything is working fine .. but this is not ...
g.revolution
In the Simulator, Core Location fakes it and always gives you 1 Infinite Loop, Cupertino as the location. If you're running Snow Leopard, go to the "Time Zone" pane of the Date and Time preference pane and see if it can locate you. If it can't, your iPod touch won't be able to either. Adding your WiFi network to http://www.skyhookwireless.com/ should enable your network to be used for location.
iKenndac
… also, you should really code your app to be able to gracefully deal with location services being unavailable like this.
iKenndac