-->

Google Sign In Exception Error swift

2019-09-14 09:51发布

问题:

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

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

Even I have given Client ID too see images below:

I appreciate your responses.

回答1:

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