由于升级到 Firebase 3,下面代码的最后一行给出了错误:
let ref = FIRDatabase.database().reference()
let locationsRef = ref.child("locations")
let geoFireQuery = GeoFire(firebaseRef: locationsRef)
传递给不带参数的调用的参数
GeoFire 也需要更新到版本 2 才能与 Firebase 3 一起使用。请按照以下说明解决此问题:
请注意,截至今天,GeoFire 2 没有可用的 pod
将此添加到您的 pod 文件中
pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'