找不到'Firebase/Firebase.h'文件



我有"pod install",我的pod文件如下所示:

# Uncomment the next line to define a global platform for your project
#platform :ios, '9.0'
target 'MyTaxii' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MyTaxii

pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod  'Firebase/Storage'
pod 'GeoFire', '>= 1.1'
end

我打开.xworkspace,运行后得到错误

"'Firebase/Firebase.h' file not found "

在我的"GeoFire.m"和GFQuery.m"中

除了尝试清理缓存外,还可以尝试更改"使用框架(_F("对于";使用模块化标头&";。这是唯一对我有效的解决方案。

target 'iosApp' do
# Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
use_modular_headers!
# Pods for iosApp
pod 'Firebase/Auth'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Email'
pod 'FirebaseUI/OAuth'
end

通过:解决

"吊舱更新",

基本上,您可能需要执行以下步骤:

1.打开你的podfile并评论pods

2( 去终端确保你在你的项目目录

3( "吊舱卸载">

4( 打开后台podfile并插入后台pods并命令保存

5( 转到终端……'吊舱安装

6( 也要。。。。。pod在#5之后更新(如果你需要特定的版本,最好阅读cocoapod"pod更新",这里:https://guides.cocoapods.org/using/pod-install-vs-update.html)

7( 打开.xworkspace并运行

8( 命令移位k(清除它(

9( 可能需要重复过程#1-8

我也有同样的问题。但已修复。

您只需要pod更新pod更新意味着更新本地规范存储库。

当我安装pod时。Firebase版本为6.34.0。

% pod install
Analyzing dependencies
Downloading dependencies
Installing Firebase 2.4.1.1
Installing Firebase 6.34.0 (was 2.4.1.1)

但是在pod更新之后。Firebase版本是8.4.0(原2.4.1.1(

% pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Firebase 8.4.0 (was 2.4.1.1)
Installing FirebaseAnalytics 8.4.0 (was 6.9.0)
Installing FirebaseAnonymousAuthUI (12.0.0)
Installing FirebaseAuth 8.4.0 (was 6.9.2)
Installing FirebaseAuthUI (12.0.0)

另一个对我来说没有变化。

我尝试安装给定的pod,但遇到了与您提到的相同的问题。为了解决这个问题,

您可以执行CMD + shift + kproduct -> clean build folder

整个项目需要重新构建。如果你有很多pod/框架或源代码,这可能需要一些时间来重新编译。这解决了pod问题。

也可能是损坏的Xcode模块缓存。尝试退出Xcode,rm -rf ~/Library/Developer/Xcode/DerivedData/,重新启动Xcode,重建。

最新更新