Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase 枚举元素';价值';不能作为实例成员引用_Firebase_Firebase Realtime Database_Swift3_Xcode8 - Fatal编程技术网

Firebase 枚举元素';价值';不能作为实例成员引用

Firebase 枚举元素';价值';不能作为实例成员引用,firebase,firebase-realtime-database,swift3,xcode8,Firebase,Firebase Realtime Database,Swift3,Xcode8,有人能帮我解决这个问题吗? 实际上,我在归档构建时遇到了这个错误。当我在我的设备上运行构建时,我没有得到任何错误。 任何帮助都将不胜感激 尝试使用:- FIRDatabase.database().reference().child("users").child(FIRAuth.auth()!.currentUser!.uid).observeSingleEvent(of: .value, with: {(Snapshot) print(Snapshot.value) }) 非常感谢。

有人能帮我解决这个问题吗? 实际上,我在归档构建时遇到了这个错误。当我在我的设备上运行构建时,我没有得到任何错误。 任何帮助都将不胜感激

尝试使用:-

FIRDatabase.database().reference().child("users").child(FIRAuth.auth()!.currentUser!.uid).observeSingleEvent(of: .value, with: {(Snapshot)

 print(Snapshot.value)


})

非常感谢。工作得很好。只是在(快照)之后添加了“in”。