在我的iOS应用中实施新的Google Maps SDK

更新:我刚收到Google发送的有关新版Google地图iOS SDK的电子邮件.似乎一切都已经解决了.我已成功为我的应用创建新的API密钥!没有玷污测试它,但似乎是正确的.他们给我发了 this个网页.

祝好运!

我从昨天开始尝试更改我的代码,以便能够使用2天前发布的新版Google Maps SDK.我已经按照所有说明进行操作,但直到现在还没有实现显示它们.
我已经请求了API密钥,但直到现在还没有任何回复.另外我试图从the Google APIs Console获得API密钥,但在服务列表中我找不到“Google Maps SDK for iOS”.

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

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)

以及我的架构部分的外观

任何能够让它发挥作用的人?

解决方法

您需要API密钥才能使用新的Google地图SDK.这是 their page中提到的.

Thanks for your interest in the Google Maps SDK for iOS. Currently
we’re taking applications for access for an API Key. Please provide
details about your app below. We’ll mail successful applicants when a
key becomes available.

所以你必须等到钥匙可用.

检查this google maps start page.您可以在那里注册您的项目,它将可用.

对于第二个问题,请检查此File is universal (three slices),but it does not contain a(n) ARMv7-s slice error for static libraries on iOS,anyway to bypass?.您可能必须从项目中删除对armv7s的支持.

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...