所以每次在我的pod文件中我决定添加像pod 'Firebase/Storage’ with pod ' Firebase / Core'这样的东西,在我的应用程序中精致的 FirebaseApp.configure()
有一个错误使用未解析的标识符'FirebaseApp'我的pod文件是
https://docs.google.com/document/d/1U7s5StRuNrI_2WtpHSvHhwhA1TMCsQ255dnjDAEhhcE/edit?usp=sharing
所以每次在我的pod文件中我决定添加像pod 'Firebase/Storage’ with pod ' Firebase / Core'这样的东西,在我的应用程序中精致的 FirebaseApp.configure()
有一个错误使用未解析的标识符'FirebaseApp'我的pod文件是
https://docs.google.com/document/d/1U7s5StRuNrI_2WtpHSvHhwhA1TMCsQ255dnjDAEhhcE/edit?usp=sharing
5 回答
您的appdelegate类应如下所示:
我假设你正在使用xcode 8和swift 3 .
试试pod'Firebase'而不是pod'Firebase / Core'
并检查“pod install”后是否安装了Firebase 4.x
在我的情况下是因为我使用的是较旧版本的Firebase(3.11.1)
更新我的repo和我的本地规格存储库与Firebase(4.2.0)FirebaseApp由Xcode解决!
这将解决这个问题
morganchen12 在此GitHub评论中的解决方案为我解决了同样的问题 . 我需要修改单元测试的Podfile(OP已经完成),然后将Firebase添加到Header Search路径 .
为了保存,评论是:
目标“FirebaseDemoTests”做
继承! :search_paths
结束
结束
为了避免丢失所需的模块Firebase错误,请将“$ / Firebase / Core / Sources”添加到Xcode中测试目标的标头搜索路径的末尾 .