-4

嗨,我在 iphone 中集成谷歌地图时遇到问题。当我在 iphone 模拟器上运行应用程序时,它运行良好,没有任何错误,当它加载到 iphone 屏幕上时,我只能看到红点而不是整个 地图.com/maps/documentation/ios/start 我已经提供了 google 分配给我的 api 密钥,但是当应用程序在 iphone 中加载时,这个 nslog 会不断生成

2012-12-31 20:36:17.132 google map[848:12e03] provideAPIKey: should be called at most once
2012-12-31 20:36:17.747 google map[848:12e03] GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 10)
2012-12-31 20:36:19.062 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:19.196 google map[848:14603] Google Maps SDK for iOS version: 1.0.1.1154
2012-12-31 20:36:19.244 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:25.618 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:33.793 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:39.026 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:40.885 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:45.096 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:53.275 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:00.036 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:00.335 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:04.719 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:12.941 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:25.739 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:26.057 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:32.466 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:40.932 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:56.592 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:57.050 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:02.515 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:10.864 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:33.764 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:34.018 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:38.405 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:46.651 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:19.375 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:19.625 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:23.874 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:32.150 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:18.172 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:18.427 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:22.677 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:31.162 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:42.868 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:43.128 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:48.785 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:57.027 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:43.507 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:43.879 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:48.065 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:56.264 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"

所以请告诉我我需要做什么,因为我浪费了 6 到 7 个小时,我的老板对我很生气,请帮助我

4

1 回答 1

3

入门页面说:

如果您看到标记,但地图不可见,请确认您已提供 API 密钥。

你真的申请了Google Maps SDK for iOS吗?您真的在 Google API 控制台的服务页面上看到了适用于 iOS的Google Maps SDK吗?(在我的 API 项目中,我看不到它。)

您可能正在使用Google Maps API v3的 API 密钥,这是您想要做的错误服务。

看起来 Google 还没有为 iOS 服务发送很多 API 密钥。您所能做的就是申请该服务并等待谷歌的答复。

于 2012-12-31T16:03:02.757 回答