Adela Adela - 2 years ago 276
iOS Question

Firebase: FIRUser not found on Swift 4

I've started using Firebase and I followed Ray Wenderlich tutorial.

After that I created my own project and there nothing works anymore.
I've installed the Firebase pods, I created a bridge header for Firebase framework (like in tutorial). It didn't work so I removed it and I made simply import.

I can import the Firebase in my class but when I try to add :

(like in the Firebase Authentication documentation)

it doesn't work. I have not a lot of choices there... I can't do anything (see the attached photo).

enter image description here

Answer Source

As the documentation states, when migrating to the latest version of the SDK for Swift, remove any FIR prefix, so FIRUser becomes User. You can find the reference here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download