Google登录异常错误迅速 [英] Google Sign In Exception Error swift
问题描述
使用自定义按钮上的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屋!