Firebase References undeclared

前端 未结 6 1156
闹比i
闹比i 2021-02-19 20:38

I created a new Xcode project, added the \'Firebase\' pod to my pod file and installed it, and added the Google-services.plist file and the rest according to the Firebase docume

6条回答
  •  野性不改
    2021-02-19 21:23

    On your Podfile, add additional line of

    pod 'Firebase/Database'
    

    Then on your code section

    import FirebaseDatabase
    

    And it should work now, with the following code:

    var ref: DatabaseReference!
    

提交回复
热议问题