Наконец-то решили эту проблему, добавив и реализовав методы делегатов в делегатах приложения как,
GIDSignIn.sharedInstance().clientID = "your_client_id"
GIDSignIn.sharedInstance().delegate = self
У меня есть и Facebook, и Google Signin, поэтому я вернул оба метода, как этот,
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
let handled = FBSDKApplicationDelegate.sharedInstance().application(app, open: url, options: options)
let googleHandler = GIDSignIn.sharedInstance().handle(url, sourceApplication: "com.apple.SafariViewService", annotation: nil)
return handled || googleHandler
}
// [END openurl]
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
let checkFB = FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
let checkGoogle = GIDSignIn.sharedInstance().handle(url as URL?,sourceApplication: sourceApplication,annotation: annotation)
return checkGoogle || checkFB
}