Lecture Material: Google Sign-in with Firebase in iOS

Fredric Cliver
2 min readSep 26, 2021

Previous article about anonymous login with Firebase authentication.

I’m going to use the same code and project structure with the previous article.

To use Google sign in feature, firstly you need to install additional pod library and change preference in the Firebase console.

import the ‘GoogleSignIn’ package after install pod.

Paste REVERSED_CLIENT_ID value into the URL Schemes from the GoogleService-Info file.

Put this code block into the AppDelegate

If you faced with this error, you need to update your GoogleSignIn pod library

Use ‘pod outdated’ command to check the availability for upgrading libraries.

Use ‘pod update’ command to make libraries being recent versions.

The error is removed.

(The code above is not working perfectly, check the full implementation with the below)

Finally, you can sign in with your Google account.

--

--

Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧