Firebase pod安装错误

时间:2016-06-17 10:25:30

标签: ios cocoapods firebase-notifications

我真的陷入了我的iOS应用程序Firebase安装的这一步。Firebase installation to Xcode我尝试了很多次,最后我可以安装一些“pod”文件'到我的项目。但是当我添加import Firebase时,错误显示为

  

没有这样的模块' Firebase'

有人能告诉我如何在我现有的ios项目中安装firebase pod吗?另外如何清除我刚安装的吊舱。

我正在使用swift 2.2,Scode 7.3和mac os x ei

我的广告内容

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'

target ‘APPNAME’ do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

   # Pods for APPNAME

  target 'APPNAME Tests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'APPNAME UITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我的错误: image of my error

1 个答案:

答案 0 :(得分:1)

在您的pod文件中添加此行

# Uncomment this line to define a global platform for your project
 platform :ios, '9.0'

target ‘APPNAME’ do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
 pod 'Firebase', '>= 2.5.1'
   # Pods for APPNAME

  target 'APPNAME Tests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'APPNAME UITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

以及更新后的广告