在我的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中提到的. @H_502_23@

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的支持.

相关文章

背景 前端时间产品经理决定使用百度统计,使得 工程B 中原统计sdk-友盟统计,需要被去除。之前尝试去除...
结论: alloc负责分配内存和创建对象对应的isa指针; init只是返回alloc生成的对象。 所以alloc后,多次...
更新 如果UI愿意把启动图切割成n份,按一定约束在launchscreen.storyboard中进行排版,启动图效果会更好...
最近在看一本书《Effective OC 2.0》,今天看到有个tip是OC适中循环各自优劣性,作者最终推荐此块循环。...
// // ViewController.m // paintCodeTestOC //gif // Created by LongMa on 2019/7/25. // #import &a...
背景介绍 一般情况下,出于省电、权限、合理性等因素考虑,给人的感觉是很多奇怪的需求安卓可以实现,但...