[Solved-4 Solutions] Location Manager Error : (KCLErrorDomain error 0)



Error Description:

  • Location Manager Error : Operation could not be completed(KCLErrorDomain error 0).Why this error occurs?

Solution 1:

  • This error occurs if you have Scheme/Edit Scheme/Options/Allow Location Simulation checked but don't have a default location set.

Solution 2:

  1. Product > Scheme > Edit Scheme
  2. Click Run .app
  3. Option tab
  4. Already checked Core Location > select your location
  5. Press OK

Besides that, even if you are not connected to wifi, you can set a location in simulator through top menu items Debug>Location and to make it permanent follow steps above

Solution 3:

  • Check that you actually have a valid WiFi and 3G connection

If you do, then

  • Go to settings and reset your location services and reset your network settings

Solution 4:

  • You can add your own list of locations to Xcode to test your applications with. From within Xcode select the menu Debug/Simulate Location and you'll be offered:
    • "Don't Simulate Location"
    • "Add GPX File to Project..."
  • Select "Add GPX File to Project..." and select the GPX file you've created.

Related Searches to Location Manager Error : (KCLErrorDomain error 0)