Cannot call value of non-function type 'module'

前端 未结 7 950
闹比i
闹比i 2020-12-11 16:37

i have a strange error when i was using firebase from google.

when i trying to init the Fire base setup the ref address for it using this code here

         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 17:23

    I ran into this same problem. You might be referring to some sample code for Firebase.com. The API has been updated and is no longer referred to as "Firebase.com" It's not clear what the new name is -- ?

    Anyway, the link below guides you through updating your podfile to include:

    pod 'Firebase/Core'
    pod 'Firebase/Database'
    pod 'Firebase/Auth'
    

    https://firebase.google.com/support/guides/firebase-ios

    remember to run

    pod update 
    

    and changing your code to call the new methods. It's working for me with Xcode 7.2

提交回复
热议问题