我正在尝试在我的应用程序中使用谷歌地图,我遵循了此处的主要步骤:https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios 场景已加载,但 map 是空的,我收到此错误:
ClientParametersRequest failed, 0 attempts remaining (0 vs 6). Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fd8ab5e9680 {NSUnderlyingError=0x7fd8b0201c40 "The network connection was lost.", NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap, NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.
谁知道问题出在哪里?
最佳答案
尝试重置 iOS 模拟器:
iOS Simulator -> Reset Content and Settings
关于ios - 无法在 Swift 中初始化 Google map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29328205/