CocoaPods找不到Firebase.h文件 [英] Firebase.h file not found with CocoaPods
问题描述
我正在尝试将Firebase添加到我的项目中。我只是在pod下方添加到我的Xcode项目中。
I am trying to add Firebase into my project. I just added below pods into my Xcode project.
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Database'
pod 'Firebase/Auth'
安装podfile之后,我尝试将firebase导入到我的项目中。但这给了我一个错误,未找到 Firebase.h。
After installing podfile, I try to import firebase into my project. But it gives me an error that Firebase.h is not found.
仅当我从安装CP
取消选中运行脚本时,才会出现上述问题。[CP]检查Pod清单。锁定
。之后,我将使用 pod install
安装pod。然后出现问题。
Above issue will occur when I uncheck the Run script only when installing
from [CP] Check pods Manifest.lock
. After that I will installed pod using pod install
. And then issue will occur.
取消选中复选框后出现错误:
Error which I got after uncheck the checkbox:
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
推荐答案
我在项目中遇到了同样的问题,
I had the same issues on my project,
我编写了手动链接项目及其库来解决问题,我按照此链接步骤工作了
https://github.com/invertase/react-native-firebase-docs/blob/master /docs/installation/ios.md
I wrote manually link the project and its libraries to solve the problem I followed this link steps it worked https://github.com/invertase/react-native-firebase-docs/blob/master/docs/installation/ios.md
此外,您还必须检查二进制文件与Xcode项目上的库的链接。
Also, you must check you link binary with libraries on your Xcode project.
另一种解决方案,您可以删除所有依赖于lib的pod,然后在 pod之后
pod初始化
添加手动Pod库安装
Another solution you can delete all pod depend on libs then you pod init
add manual pod libs after pod install
这篇关于CocoaPods找不到Firebase.h文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!