Google 地图无法在 iOS 中加载,错误为 -999

Google Map Fail to load in iOS with error -999

我已经在我的应用程序中集成了 google 地图 SDK。 运行 很好,两天前我通过 pod 更新了 SDK,之后地图没有加载。 每当我用地图加载 View Controller 时,它都会显示没有任何位置的空地图,并且在控制台中会抛出以下错误:

ClientParametersRequest failed, 5 attempts remaining (0 vs 7). Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap}

终于找到不加载地图的原因了。实际上我的设备时间设置为未来,在这种情况下每个 google 请求都失败了。