小编Chr*_*ris的帖子

iOS 13 模拟器:reverseGeocodeLocation - [GEOAddressObject] [NSLocale currentLocale] 对于 NSLocaleCountryCode@ 失败

每当我打电话时:

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,但它没有任何区别 - 我总是收到失败的消息。

其他任何人都遇到过这种情况并找到了解决方案?

clgeocoder swift reversegeocodelocation

6
推荐指数
1
解决办法
2832
查看次数

标签 统计

clgeocoder ×1

reversegeocodelocation ×1

swift ×1