Search code examples
iphoneiosobjective-cgoogle-mapsgoogle-maps-sdk-ios

IOS - ObjC Google Maps Api Key


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

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 ?


Solution

  • 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}"];
    

    it should be like :

    [GMSServices provideAPIKey:@"123123123"];