BLACK FRIDAY SALE: Save big on all my Swift books and bundles! >>

HELP! Error with Google Sign In when following tutorial Firebase!

Forums > Swift

Hello All, I have a question on how to fix an error in my AppDelegate class that I had to make due to it not existing in Xcode 12. I had made this, and when I am more than halfway through the tutorial on how to make this with "Google Signing In" capabilties. The error is in line 51 in my SMKApp.swift file. It gives me 2 errors:

1: Cannot assign value of type '(Optional<AuthDataResult>, _)' to type 'String'

2: Value of type 'GIDGoogleUser' has no member 'email'

Thanks, Harri

Github Respository: https://github.com/HSSwift/SaiMirrasKitchen Tutorial: https://www.youtube.com/watch?v=mzoRYuX-nmE

1      

Hacking with Swift is sponsored by RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.