iOS 13 Simulator: reverseGeocodeLocation - [GEOAddressObject] [NSLocale currentLocale] failed for NSLocaleCountryCode@
Asked Answered
D

1

6

Whenever I'm calling:

reverseGeocodeLocation(_ location: CLLocation, preferredLocale locale: Locale?, completionHandler: @escaping CLGeocodeCompletionHandler)

I'm getting in the console:

[GEOAddressObject] [NSLocale currentLocale] failed for NSLocaleCountryCode@

I'm getting this on the iOS 13 Simulator (iPhone 6s), so I don't know if this also happens on a real device. I've tested with nil and any Locale for preferredLocale, but it does not make any difference - I always get the failed-message.

Anyone else is experiencing this and found a solution?

Danforth answered 24/9, 2019 at 7:53 Comment(0)
F
22

I was also getting this same error "failed for NSLocaleCountryCode@" on the simulator for all iPhone types. Running iOS 13.1. I was able to solve it by going into Settings -> General -> Language & Region -> Region and updating the region from United States to Sweden (where I live).

Footstall answered 27/10, 2019 at 16:35 Comment(3)
Better late than never ;) Thank you - that worked! :)Danforth
Seems to work if you re-select the same region as well. Thanks @JMBaker!Superstitious
Modify "Edit Scheme" works as well, set App Region to e.g. SwitzerlandRedon

© 2022 - 2024 — McMap. All rights reserved.