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

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

问题描述

我一步一步地实施了获取iOS版Google地图SDK。

最后,模拟器运行正常,没有发现错误,但地图没有详细信息如图所示:





底部的输出也有这样的信息:


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.1154
2012-12-23 01:07:00.375 GogleMap [3680:c07] ClientParametersRequest失败,尝试3次>剩余。错误域= DASHConnectionError Code = 100操作无法完成
(DASHConnectionError error 100。)

帮助,请提前致谢。

解决方案

@ user1924208我遇到同样的问题。我已经孜孜不倦地寻找答案,不幸的是我认为我们运气不佳。 Google API控制台可能会向您显示Google Maps v.3的API密钥,该密钥不是Google Maps iOS API密钥。因此,当您使用它作为API密钥时,验证请求将始终失败。



好像它们没有为iOS版本发布任何API密钥原因。尽管令人沮丧,但您只需等待,直到您收到来自他们的电子邮件(不确定何时会是...)。



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



更新



我刚刚收到Google地图的电子邮件,现在可以使用我的API密钥。我用GMSServices切换出了MKMapKit,并且一切正常。看起来他们现在更愿意释放API密钥,所以希望你很快就能获得你的密钥。

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.

As showing in the picture:

Also the output on the bottom has this message:

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.)"

Help please and thanks in advance.

解决方案

@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.

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...).

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.

Update

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.

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

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