This question has already been answered -
Why won't my Firebase pod 3.x install correctly?
Here are the highlights -
pod update
You need to run pod update once before installing the Firebase module, and it will install the correct version the next time you do it.
Please check the original answer for further explanation.
UPDATE
FIRAuth may be what you are looking for in 3.x
From Documents -
Update your authentication code
FIRAuth.auth()!.signInAnonymouslyWithCompletion() { (user, error) in if let error = error { print("Sign in failed:", error.localizedDescription) } else { print ("Signed in with uid:", user!.uid) }
}
For login ( unauth in your case) -
try! FIRAuth.auth()!.signOut()
This should definitely work. Of course, you need to add GoogleService-Info.plist to your project from the firebase console, as indicated in the comments.
source share