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:
- Under the Simulator menu:
Reset Content and Settings...
.- Close the simulator
- 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..