在我的iOS应用中实施新的Google Maps SDK [英] Implement new Google Maps SDK to my iOS app

查看:89
本文介绍了在我的iOS应用中实施新的Google Maps SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:我刚刚收到Google发送的关于新版Google Maps iOS SDK的电子邮件。似乎一切都已经解决了。我已经成功地为我的应用创建了新的API密钥!没有玷污它,但似乎是正确的。他们给我中提到的内容。


感谢您对iOS版Google地图SDK的关注。目前
我们正在申请访问API密钥。请在下方提供有关您的应用的
详细信息。 我们会在
密钥可用时邮寄成功申请人。


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



检查这个谷歌地图的开始页面。您可以在那里注册您的项目并且它将可用。



对于第二个问题,请检查文件是通用的(三个片段),但它不包含(n)ARMv7 -s为iOS上的静态库切片错误,无论如何绕过?。您可能需要从您的项目中删除对armv7s的支持。


UPDATE: I've just received an email from Google about the new Google Maps iOS SDK. Seems that everything has sorted out. I have successfully create new API key for my app! Didn't sully test it yet, but seems correct. They sent me this URL page.

Good Luck!


I am trying from yesterday to change my code so be able to use the new Google Maps SDK that released 2 days ago. I have follow all the instructions but until now didn't achieve to display them. I have already request for an API key but without any reply until now. In addition I am trying to get an API key from the Google APIs Console but in list of Services I can't find "Google Maps SDK for iOS".

Secondly, when I am trying to run my app(on Simulator), screen is black, I can see just Google logo on the left-hand side (and press it as well). I am getting these messages on Log screen:

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

UPDATE: Just noticed that project can't be built successfully on device (iPhone 4S, iOS 6). I don't know if that related with my problem above but here is the error:

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)

and how my Architectures section looks like

Anyone who has achieved to make it work?

解决方案

You need an API key to use the new google maps SDK. This is what mentioned in 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.

So you have to wait till the keys are available.

Check this google maps start page. You can register your project there and it will be available.

For the second issue, check this File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?. You might have to remove the support for armv7s from your project.

这篇关于在我的iOS应用中实施新的Google Maps SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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