谷歌地图无法在 iPhone 模拟器上运行 [英] Google Maps not working on iPhone simulator

查看:41
本文介绍了谷歌地图无法在 iPhone 模拟器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经逐步实现了Getting the Google Maps SDK for iOS"

I've implemented the "Getting the Google Maps SDK for iOS" step by step

最后模拟器运行正常,没有发现错误,但地图除了标记之外没有任何细节.

finally the simulator running ok no errors found but the map has no details except the marker.

如图所示:

底部的输出也有这个消息:

Also the output on the bottom has this message:

2012-12-23 01:06:59.869 GogleMap[3680:c07] GMSZoomTableQuadTree 缺少 >tile 类型的根缩放表 (mapType: 10)2012-12-23 01:07:00.042 GogleMap[3680:1b03] Google Maps SDK for iOS 版本:1.0.1.11542012-12-23 01:07:00.375 GogleMap[3680:c07] ClientParametersRequest 失败,3 次尝试 > 剩余.错误域=DASHConnectionError Code=100操作无法完成.(DASHConnectionError 错误 100.)"

2012-12-23 01:06:59.869 GogleMap[3680:c07] GMSZoomTableQuadTree lacks root zoom table for >tile type (mapType: 10) 2012-12-23 01:07:00.042 GogleMap[3680:1b03] Google Maps SDK for iOS version: 1.0.1.1154 2012-12-23 01:07:00.375 GogleMap[3680:c07] ClientParametersRequest failed, 3 attempts >remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"

请帮忙,提前谢谢.

推荐答案

@user1924208 我也遇到了同样的问题.我不知疲倦地在互联网上搜索答案,不幸的是,我认为我们不走运.Google API 控制台可能会向您显示 Google Maps v.3 的 API 密钥,它不是 Google Maps iOS API 密钥.因此,当您将其用作 API 密钥时,验证请求将始终失败.

@user1924208 I am having the same issue. I have searched the internet tirelessly for the answer and unfortunately I think we are out of luck. The Google API Console is probably showing you the API key for Google Maps v.3 which is NOT the Google Maps iOS API key. Therefore when you use that as your API key, the validation request will always fail.

似乎无论出于何种原因,他们都没有为 iOS 版本发布许多 API 密钥.令人沮丧的是,您只需要等到收到他们的电子邮件(不确定什么时候会......).

It seems as if they haven't issued many API keys for the iOS version for whatever reason. As frustrating as it is, you will just need to wait until you receive an email from them (not really sure when that will be...).

您可以确认这一点,因为用任何随机字符串替换当前 API 密钥都会产生相同的结果.顺便说一句,这在我已经测试过的模拟器和真实设备上也产生了相同的结果.

You can confirm this because replacing the current API key with any random string will produce the same results. By the way, this also produces the same results both on simulator and on a real device, which I have tested.

更新

我刚收到一封来自 Google 地图的电子邮件,告诉我我的 API 密钥现已可用.我用 GMSServices 关闭了 MKMapKit,一切正常.似乎他们现在对发布 API 密钥感到更自在了,所以希望你很快就会得到你的.

I just got an email from Google Maps that my API key is now available. I switched out the MKMapKit with GMSServices and things are working. It seems like they are a little more comfortable with releasing API keys now so hopefully you will get yours very soon.

这篇关于谷歌地图无法在 iPhone 模拟器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆