Google Sign-in for iOS
1.Download GoogleSignIn SDK
There are two ways to get the SDK, CocoaPod or direct download,
Personally I preferred the download way.
Follow the official document procedure
2.Get configuration file
3.Copy to project directory first then “pull” into xcode project
Basically just pull the configuration file into the xcode project and it is OK.
But you will gonna thank me for this lousy procedure when there are multiple configuration files in one xcode project.
4.Configure xcode project-level parameters
Put REVERSED_CLIENT_ID into Project -> Target -> Info -> URL Types
Put bundle id into Project -> Target -> Info -> URL Types
5.Modify source code
There will be only one file to be modified – AppDelegate
The most important statement is to set [GIDSignIn sharedInstance].clientID = CLIENT_ID(in configuration)