我正在使用google ios sdk运行基于地图的应用程序。创建了一个ios api密钥并将其添加到应用程序中。适用于模拟器,但不适用于设备。尝试在Ipad中运行时,应用程序会运行并添加标记但底层地图会显示为灰色。没有地图,但标记。控制台错误消息如下。任何帮助表示赞赏..
ClientParametersRequest failed, 0 attempts remaining (0 vs 5). Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d5656e0
{
NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap, NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x2333dc70 "The request timed out."}
2013-07-12 15:40:23.452 TreeInspect[330:907] Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d5656e0 {NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap, NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x2333dc70 "The request timed out."
}
答案 0 :(得分:4)
从错误消息“请求超时”看起来您似乎没有活动的Internet连接?