如标题中所述,当我尝试构建和运行一个项目时遇到的两个错误如下:
无法构建 Objective-C 模块“Firebase”
和
找不到“FirebaseAnalytics/FirebaseAnalytics.h”文件
我的podfile如下:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Comment this line if you're not using Swift and don't want to use dynamic
frameworks
use_frameworks!
# Pods for MyProject
target 'MyProject' do
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
# Pods for testing
target 'MyProjectTests' do
inherit! :search_paths
pod 'Firebase'
end
end
GitHub 上的一个建议是将我的标题搜索路径更改为“inherit!:complete”,但这不起作用。我应该将其更改为 podfile 部分下的“inherit! :search_paths”吗?
同样,这个项目一年前运行良好,但现在我遇到了这些错误。
非常感谢任何和所有帮助。
最佳答案
仅在build设置 -> header 搜索路径
下将“${PODS_ROOT}/Firebase/Core/Sources”
添加到测试目标
详情请参阅GitHub Issue .
关于xcode - 无法构建 Objective-C 模块 'Firebase' 和 'FirebaseAnalytics/FirebaseAnalytics.h' 文件未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44744207/