google-apiswift3xcode8google-signininvalidargumentexception

Google Sign In Exception Error swift


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:

enter image description here

I appreciate your responses.


Solution

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