iOS ,Google Map Error: Your key may be invalid for your bundle ID

iOS ,Google Map Error: Your key may be invalid for your bundle ID

ClientParametersRequest failed, 3 attempts remaining (0 vs 6). 
Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. 
(com.google.HTTPStatus error 400.)" UserInfo=0x7f95f4811190 
{data=<CFData 0x7f95f24df240 [0x1030a2eb0]>
{length = 145, capacity = 256,bytes =     
0x3c48544d4c3e0a3c484541443e0a3c54... 3c2f48544d4c3e0a}}

我需要有关此错误的帮助。

您需要为您的申请提供 API KEY。您可以按照 this documentation to create an API_KEY from Google Developer Console 中的步骤进行操作。 (注意:文档页面中的示例 API_KEY 可能会抛出错误,所以不要使用它,创建你自己的)

从开发者控制台获取 API KEY 后,您可以将其粘贴到 AppDelegate 文件中。

如果您正在开发 Objective-C 应用程序,请执行以下操作:

[GMSServices provideAPIKey:@"YOUR_API_KEY"];

如果您正在开发 Swift 应用程序,请执行以下操作:

GMSServices.provideAPIKey("YOUR_API_KEY");

(将 YOUR_API_KEY 替换为您的实际密钥)。