CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0 CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0 ios ios

CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0


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

Please check this it may resolve your issue.


Following Steps fixed my problem:

  1. Under the Simulator menu: Reset Content and Settings....
  2. Close the simulator
  3. Restart your app.


I faced same situation and have followed this steps, may be it helps:)

1) Go to Simulator (whichever version)

2) Go to Debug menu -> Location -> Select Apple as your custom location.

it started working in my case..