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 ?
Two things I would suggest double checking:
Be aware that the Bundle Identifier is case sensitive. If the capitalization is off in the application, or within the google development console, it will through this error.
Make sure you've included the API key in your applications delegate as listed by Sercan Ozdemir above. Your App's delegate file should contain a method similar to the one below.
I too faced the same problem even though I did everything correctly. I made a mistake at choosing the framework. I had taken GoogleMapsM4B.framework instead of GoogleMaps.framework. I overcame this error after choosing suitable framework from this link.
This might be helpful to someone.
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
it should be like :