The recommended way to include the Google Sign-In SDK in your iOS project is to use CocoaPods, but you can also download the SDK and manually configure your project to use it.
Download the Google Sign-In SDK
- Google Sign-In SDK 4.0.1
- Google Sign-In SDK 4.0.0
- Google Sign-In SDK 3.0.0
- Google Sign-In SDK 2.4.0 (deprecated)
- Google Sign-In SDK 2.3.2 (deprecated)
- Google Sign-In SDK 2.3.0 (deprecated)
- Google Sign-In SDK 2.2.0 (deprecated)
- Google Sign-In SDK 2.1.0 (deprecated)
- Google Sign-In SDK 2.0.1 (deprecated)
- Google Sign-In SDK 1.0.0 (deprecated)
Add the SDK your Xcode project
Extract the SDK archive you downloaded and copy the following files to your Xcode project:
GoogleSignIn.bundleto your Xcode project's Copy Bundle Resources build phase.
Link dependent frameworks to your Xcode project
Link the following frameworks to your Xcode project:
ObjC linker flag
to the app target's build settings:
- Other Linker Flags:
Get a configuration file
Click the button below to get a configuration file.
The configuration file provides service-specific information for your app. To get it, you must select an existing project for your app or create a new one. You'll also need to provide a bundle ID for your app.Get a Configuration File
If you didn't add additional services when you created the configuration file, you don't need to copy it to your project. However, keep the configuration file, because it contains information that you need to set up your Xcode project.
Add a URL scheme to your project
In the Project > Target > Info > URL Types panel, create a new item
and paste your
REVERSED_CLIENT_ID into the URL Schemes field.
You can find your
REVERSED_CLIENT_ID in the
Now that you've downloaded the project dependencies and configured your Xcode project, you can follow the guide to add Google Sign-In to your iOS app.