无法在Swift应用中导入Firebase SDK

我已经开发了演示ios应用程序,我需要集成Firebase ,所以我遵循了Raywenderlitch教程 ,了解如何在iOS中编写由@David East编写的Firebase SDKs

在我通过cocoapods安装了Firebase SDKs ,当我尝试命令点击AppDelegate.swift (导入Firebase)文件中的Firebase import语句时, xcode进入下面的视图。 欲了解更多信息,请查看下面的截图。

在这里输入图像说明

请find下面的Podfile:

 platform :ios, '8.0' use_frameworks! target 'SampleApplication' do pod 'IQKeyboardManager' pod 'Koloda' pod 'Firebase' end post_install do |installer| `find Pods -regex 'Pods/pop.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)pop\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'` end 

另外我也回顾了@David East回答的问题,请看下面的内容。

1) 不能在Swift应用中导入Firebase
2) 不能将Firebase导入Swift类

但是解决scheme在我的情况下是行不通的。 请帮我做我做错了什么。

提前致谢。

更新
我也试图从Firebase官方网站手动添加框架, 以便在没有CocoaPods的情况下进行集成,但仍然遇到问题。 欲了解更多信息,请查看下面的截图。

在这里输入图像说明

我已经上传我的示例应用程序的源代码在Dropbox,如果你想,那么请检阅它。 源代码链接 : https : //www.dropbox.com/s/5jr0zbnymhou94c/TestFireBase.zip?dl = 0

Firebase SDK在2016年5月16日发生了重大变化。这改变了吊舱的名称及其各自的function。

标准Firebase SDK的新pod名称是Firebase/Core ,其中仅包含Firebase Analytics。 如果您从旧的Firebase系统升级,则可能只需要这些:

 pod 'Firebase/Core' # Firebase Analytics pod 'Firebase/Database' # Firebase Realtime Database pod 'Firebase/Auth' # Firebase Authentication 

如果您使用的是其他Firebasefunction,请参阅https://firebase.google.com/docs/ios/setup了解其他podname&#x3002; 不要忘记,无论您select什么,都需要包含Firebase/Core