Use our iOS sample app to see how Sign-In works, or add Sign-In to your existing app.
To use this sample, make sure you have a current version of Xcode installed.
Get the project
- If you don't already have CocoaPods installed, follow the steps in the CocoaPods Getting Started guide.
From a terminal, start with the sample using the following command:
pod try GoogleSignIn
CocoaPods will clone the sample project from GitHub and open it in Xcode.
Swift Package Manager
Clone the Google Sign-In for iOS repository:
git clone https://github.com/google/GoogleSignIn-iOS
Open the SignInSample project in Xcode:
When you open the project, Xcode automatically downloads the project dependencies using Swift Package Manager.
Run the application
Now you're ready to build and run the sample app from Xcode.
Select the SignInSample target then start the sample application on a device or in the iOS simulator by clicking the run button for the workspace.
Did you have a good experience? Run into trouble? Let us know!