gpt4 book ai didi

ios - 为我的 iOS 应用程序实现新的 Google Maps SDK

转载 作者:可可西里 更新时间:2023-11-01 03:37:33 24 4
gpt4 key购买 nike

更新:我刚刚收到一封来自 Google 的关于新的 Google Maps iOS SDK 的电子邮件。似乎一切都已经解决了。我已成功为我的应用创建新的 API key !还没有测试它,但似乎是正确的。他们发给我 this网址页面。

祝你好运!


我从昨天开始尝试更改我的代码,以便能够使用 2 天前发布的新 Google Maps SDK。我已经按照所有说明进行操作,但直到现在还没有实现显示它们。我已经申请了一个 API key ,但直到现在还没有任何回复。此外,我正在尝试从 the Google APIs Console 获取 API key 但在服务列表中我找不到“适用于 iOS 的 Google Maps SDK”

其次,当我尝试运行我的应用程序(在模拟器上)时,屏幕是黑色的,我只能在左侧看到 Google Logo (同时按下它)。我在日志屏幕上收到这些消息:

2012-12-14 12:20:57.132 CoL[515:7a03] Google Maps SDK for iOS version: 1.0.1.1154
2012-12-14 12:20:57.132 CoL[515:7a03] New version of Google Maps SDK for iOS available: 1.0.1.1154
2012-12-14 12:20:57.192 CoL[515:c07] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:20:57.242 CoL[515:c07] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:21:01.291 CoL[515:c07] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:21:09.314 CoL[515:c07] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:21:13.339 CoL[515:c07] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:21:13.363 CoL[515:c07] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-14 12:21:17.386 CoL[515:c07] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"

更新:刚刚注意到无法在设备(iPhone 4S、iOS 6)上成功构建项目。我不知道这是否与我上面的问题有关,但这是错误:

ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/.../GoogleMaps.framework/GoogleMaps for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

以及我的架构部分的外观 enter image description here

有谁成功实现了它?

最佳答案

我有真正的答案。所以我也获得了对 SDK 的访问权限,但它仍然不适合我。它显示为带有图钉的灰色 map 。

修复步骤:

清理您的 Xcode 项目。重置 iOS 模拟器。关闭 Xcode 和模拟器。启动并运行。

显然要确保你的 api 在那里,否则它根本无法工作。

关于ios - 为我的 iOS 应用程序实现新的 Google Maps SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13878905/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com