谷歌登录显示iOS出现500个错误

谷歌登录显示iOS出现500个错误,ios,google-api,Ios,Google Api,我遵循官方指南,检查clientID是否正确设置,URL方案是否注册 这是我的密码: ApplicationLegate: func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Setup Google SingIn GIDS

我遵循官方指南,检查clientID是否正确设置,URL方案是否注册

这是我的密码:

ApplicationLegate:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        // Setup Google SingIn
        GIDSignIn.sharedInstance().clientID = "363974216099-mnrmo2bhkg9lttb6j891g1qvdqlccr4v.apps.googleusercontent.com"
        GIDSignIn.sharedInstance().scopes = 
            ["https://www.googleapis.com/auth/plus.login",                                           
             "https://www.googleapis.com/auth/plus.me"]


        return true
    }

    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        return GIDSignIn.sharedInstance().handle(url as URL?,
                sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String,
                annotation: options[UIApplicationOpenURLOptionsKey.annotation])
    }
代理在ViewController中设置,甚至不执行。 url方案已注册,以下是.plist:

我试了两个:模拟器和设备。我总是这样想:

如果我显式调用,则调用委托方法时出错:
无法完成该操作。(com.google.GIDSignIn error-4。)

我成功了。您需要在凭证部分设置OAuth同意屏幕。你需要选择电子邮件地址。

你添加了'GIDSignIn.sharedInstance().scopes'否。我需要吗?是的,你必须像GIDSignIn.sharedInstance().scopes(“).GIDSignIn.sharedInstance().scopes(“)那样添加''我添加了范围并更新了帖子,但没有帮助,仍然显示相同的错误。GIDSignIn.sharedInstance().Signensilenly()将此添加到。我希望您已经添加了正确的bundle ID,并从谷歌控制台激活谷歌登录。