我尝试使用 xcode 中的 firebase 并出现此错误:
Cannot call value of non-function type module Firebase
(我的 Firebase 导入没有问题)
我尝试再次手动设置 firebase 但出现同样的错误!
我需要卸载 cocoapods 吗?
我使用 xcode 7.3.1(7d1014),我的 pod 文件如下所示:
# Uncomment this line to define a global platform for your project
platform :ios, ‘9.3’
target 'FIRST' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FIRST
pod ‘Firebase’, ‘>=2.5.1’
target 'FIRSTTests' do
inherit! :search_paths
# Pods for testing
end
end
有人帮忙吗?
您需要使用 pod 安装“Firebase/database”,如本答案所述:
https://stackoverflow.com/a/37437790/2301570
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)