xcode错误:无法调用非功能类型模块Firebase的值 [英] xcode error : Cannot call value of non-function type module Firebase

查看:161
本文介绍了xcode错误:无法调用非功能类型模块Firebase的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从xcode使用firebase,我有这个错误:

无法调用非函数类型模块的值Firebase 

(我没有使用Firebase导入的问题)



我尝试再次手动设置Firebase,但出现同样的错误



我需要卸载cocoapods吗?



我使用xcode 7.3.1(7d1014)和我的pod文件如下所示:

#取消注释此行为您的项目定义一个全局平台
platform:ios,'9.3'

target'FIRST'do
#如果您不使用Swift而不想使用动态框架,请注意以下这行:
use_frameworks!

#第一个
pod'Firebase','> = 2.5.1'

目标'FIRSTTests'do
继承! :search_paths
#Pod用于测试
结束
$ b $结束

任何人都可以帮忙??

解决方案

您需要使用pod安装Firebase / database,如此答案中所述:

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


I try to use firebase from xcode and i have this error:

Cannot call value of non-function type module Firebase 

(i did not have problem with Firebase import)

I try to setup again firebase manually but i have the same error!!

Do i have to uninstall cocoapods?

I use xcode 7.3.1(7d1014) and my pod file look like this:

# 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

anyone help??

解决方案

You need to install 'Firebase/database' using pod, as stated in this answer:

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

这篇关于xcode错误:无法调用非功能类型模块Firebase的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆