Cannot call value of non-function type 'module'

前端 未结 7 948
闹比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:26

    i also face the same issue . i delete the ccocoa pod and follow this link to install the firebase through cocoapod . after that i am able to solve this problem

    Step 1 :- you need CocoaPods 1.0.0 or later

    Step 2 :- Create a Firebase project in the Firebase console,

    Click Add Firebase to your iOS app and follow the setup steps. If you're importing an existing Google project, this may happen automatically and you can just download the config file.click here

    Step 3 :- Add the SDK

    pod 'Firebase'

    now Initialize Firebase in your app

    https://firebase.google.com/docs/ios/setup#add_the_sdk

    Thanks

提交回复
热议问题