Chr*_*ris 6 clgeocoder swift reversegeocodelocation
每当我打电话时:
reverseGeocodeLocation(_ location: CLLocation, preferredLocale locale: Locale?, completionHandler: @escaping CLGeocodeCompletionHandler)
Run Code Online (Sandbox Code Playgroud)
我进入控制台:
[GEOAddressObject] [NSLocale currentLocale] failed for NSLocaleCountryCode@
Run Code Online (Sandbox Code Playgroud)
我在iOS 13 模拟器(iPhone 6s)上得到了这个,所以我不知道这是否也发生在真实设备上。我已经测试了nil和 any Localefor preferredLocale,但它没有任何区别 - 我总是收到失败的消息。
其他任何人都遇到过这种情况并找到了解决方案?
JMB*_*ker 20
我还在所有 iPhone 类型的模拟器上遇到了同样的错误“NSLocaleCountryCode@ 失败”。运行 iOS 13.1。我可以通过进入 Settings -> General -> Language & Region -> Region 并将区域从美国更新到瑞典(我居住的地方)来解决它。
| 归档时间: |
|
| 查看次数: |
2832 次 |
| 最近记录: |