我尝试使用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
谁帮忙?
1 回答
您需要使用pod安装“Firebase /数据库”,如以下答案所述:
https://stackoverflow.com/a/37437790/2301570