Google signing (GIDSignIn) working perfectly until iOS 10.3, but not in iOS 11.
In iOS 11:
- (void)signIn:(GIDSignIn *)signIn presentViewController:(UIViewController *)viewController
method is called only the first time. Subsequent login tries (after signout or cancel signin) are not invoking the above call back. Call to GIDSignIn.signin method does nothing.
Basically you not call the two delegates into you Viewcontroller.Swift file
Xcode 9.2 Swift 4
Step 1 : Install two pods
Step 2 : Enable Google Sign by giving your bundle identifier of your project. Generate configuration file and import it into your project.
Step 3 : Go to your AppDelegate.swift and import two libraries.
Step 4 : Replace you appDelegate function by this code.Client ID is show in your Google GoogleService-Info.plist which you import into your project.
Implement this delegate in your AppDelegate file.GIDSignInDelegate
Step 5 : Go to ViewController.Swift file paste the code and drag the button and connect with button action which is available in code.You only need to connect button with code