Firebase References undeclared

前端 未结 6 1768
心在旅途
心在旅途 2021-02-19 21:07

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:31

    As in swift4 the 'FIRDatabaseReference' has been renamed to 'DatabaseReference'

    So, use:

    var ref:DatabaseReference!

提交回复
热议问题