JasonP JasonP - 1 year ago 53
Swift Question

Firebase imported but cannot be used

Im simply just trying to pair up Facebook login with

I'm creating a singleton where it has reference to my firebase project but it won't let me initialize firebase. Ive imported every pod I can and it still won't work.

I'm getting below error.

Its driving me crazy.. is this deprecated or something?

Heres my pod file

enter image description here

Answer Source

In the new version of Firebase, you need to use FIRDatabase.database().reference() instead of Firebase(url: url), if you doesn't know about this, check the latest Firebase documentation for iOS.

If you are upgrading your existing app that uses Firebase.com to the new Firebase console and APIs the check this documentation of Firebasefor that.

Also you can check this video tutorial on iOS Swift Tutorial: Get started with Firebase and an App like Twitter