祝好运!
我从昨天开始尝试更改我的代码,以便能够使用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)
以及我的架构部分的外观
任何能够让它发挥作用的人?
解决方法
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的支持.