MD.Sazid Hasan Dip MD.Sazid Hasan Dip - 1 year ago 206
iOS Question

Firebase(url:"") function is not working

I have installed the firebase pod in my project and imported Firebase to my swift class but when i am trying to implement Firebase(url:"") function its not working it says :

Cannot call value of non-function type 'module Firebase'

I am using xcode 7.3.1

there is the pic of my code:

enter image description here

Answer Source

Which version of Firebase you are using? I'm assuming 3.0+, so you'll need to get the reference as follow:

let ref = FIRDatabase.database().reference()
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download