Google登录异常错误迅速 [英] Google Sign In Exception Error swift

查看:289
本文介绍了Google登录异常错误迅速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用自定义按钮上的Google SDK登录时,我并没有弄错.控制台显示:

I'm not getting the point where I'm making mistake while using Google SDK Login on custom button. The console is giving:

由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'您必须为| GIDSignIn |指定| clientID |'
***首先抛出调用堆栈:"

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must specify |clientID| for |GIDSignIn|'
*** First throw call stack:"

即使我也提供了客户ID,也可以看到以下图片:

Even I have given Client ID too see images below:

感谢您的答复.

推荐答案

在Google登录委派自我之前,在 AppDelegate 类的applicationdidfinish方法中或在viewDidLoad中写入客户端ID .

Write Client ID in applicationdidfinish method of AppDelegate class or in viewDidLoad before the google signin delegating self.

这篇关于Google登录异常错误迅速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆