xcode错误:无法调用非功能类型模块Firebase的值

时间:2016-06-04 13:56:38

标签: ios xcode firebase swift2

我尝试使用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 个答案:

答案 0 :(得分:0)

您需要使用pod安装“Firebase /数据库”,如此答案中所述:

https://stackoverflow.com/a/37437790/2301570