为什么我在尝试获取google+;时得到错误代码403;我的ios应用程序中的配置文件图像?

为什么我在尝试获取google+;时得到错误代码403;我的ios应用程序中的配置文件图像?,ios,swift,google-api,google-signin,google-console-developer,Ios,Swift,Google Api,Google Signin,Google Console Developer,我有某个用户的谷歌iD,我想在我的应用程序中显示他的谷歌个人资料照片。在我的swift代码中,我尝试获取包含必要信息的json(基于此答案)。这是我的代码: Alamofire.request(.GET, "https://www.googleapis.com/plus/v1/people/10263...4252?key=AI...Oo") .responseJSON { response in print(response)

我有某个用户的谷歌iD,我想在我的应用程序中显示他的谷歌个人资料照片。在我的
swift
代码中,我尝试获取包含必要信息的json(基于此答案)。这是我的代码:

 Alamofire.request(.GET, "https://www.googleapis.com/plus/v1/people/10263...4252?key=AI...Oo")
            .responseJSON { response in

                print(response)
                switch response.result {
                case .Success:

                    dispatch_async(dispatch_get_main_queue(),{

                        if let jsonData = response.result.value as? [[String: AnyObject]] {
                            print(jsonData)
                        }

                    })
                case .Failure(let error):
                    print("SWITCH ERROR")
                    print(error)
                }

        }
但作为回应,我得到了这个错误:

    error =     {
        code = 403;
        errors =         (
                        {
                domain = usageLimits;
                extendedHelp = "https://console.developers.google.com";
                message = "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.";
                reason = ipRefererBlocked;
            }
        );
        message = "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.";
    };
我仔细检查了我的google开发者控制台,没有设置任何IP限制。到目前为止,情况是这样的:

我在这里使用api密钥:

如您所见,此处没有域限制:


这个奇怪错误的原因可能是什么?

删除Google开发者控制台中API密钥的iOS捆绑标识限制。捆绑包标识符限制仅在使用的。

副本时有效。请只问你一次问题。