IOS - ObjC Google Maps API密钥 [英] IOS - ObjC Google Maps Api Key

查看:104
本文介绍了IOS - ObjC Google Maps API密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是按照此处提供的一切正确,但Xcode仍然出现此错误:

i just did everything right as mentioned here but Xcode still gives that error:

  Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x8416b20 {data=<CFData 0x9187710 [0x27424d8]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2013-09-01 15:04:04.902 MyApp[1357:12e03] Your key may be invalid for your bundle ID: MyBundleID

因此,我已经使用Google并获得了这些信息:第一个结果第二个结果从现在起,它开始变得无聊了。有没有办法让这个邮件的事情更快,或者我还在做错什么?

So i 've googled it and got these: first result, second result, and it started to be boring from now on. Is there a way to make this mail thing faster, or am i doing wrong something still ?

推荐答案

哦,我已经得到了答案。也许有人需要它。只需清理API KEY中的这些标志,我的意思是它不应该像下面那样:

Ohh, i've got the answer. Maybe someone needs it. Just clean {} these signs from your API KEY, i mean it shouldn't be like below

[GMSServices provideAPIKey:@"{123123123}"];

应该是这样的:

[GMSServices provideAPIKey:@"123123123"];

这篇关于IOS - ObjC Google Maps API密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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