I was rebuilding pet IOS project with google and facebook authorization. Google flow used to be like:
GIDSignIn.sharedInstance.signIn(with: config, presenting: presentingViewController) {
user, error in ///bla bla bla }
But when the GoogleSignIn package was redownloaded, xcode started showing an error. And google authorization flow changed to
GIDSignIn.sharedInstance.signIn(withPresenting: presentingViewController) {
user, error in ///bla bla bla }
The problem is when I’m doing auth in this "new" way my app crashes with message
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No active configuration. Make sure GIDClientID is set in Info.plist.'
Also there is no information in google documentation and in github rep. Please help!
2
Answers
The function updated and
with: config
parameter removed. Client_ID value from googleservice-info should be added info.plist as GIDClientID key. your function should beMake sure you are downloading version
6.0.2
in order to getGIDSignIn.sharedInstance.signIn(with: presenting: callback)