ios 手动安装 firebase,出现错误 "firebase.h"找不到文件

标签 ios firebase react-native react-native-ios react-native-firebase

我正在为一个 react-native 应用程序安装 firebase,我已经完成了 android 的安装,它可以毫无错误地同步和构建。但是我在 IOS 手动添加 firebase 时遇到了问题,不,我不能使用 cococapods。

这是我得到的错误 enter image description here

我已链接、清理、重新打开并到处寻找解决方案。我已按照 zip 中包含的自述文件进行操作,但仍然收到错误 enter image description here

最佳答案

这是react-native-firebase 的常见错误信息。 由于各种原因,React-native 链接经常失败。

因此,您需要学习本地库的手动链接才能不使用 cocoapod。 ( cocoa 足是垃圾!!!) 读这个。它解决了你的问题。 https://facebook.github.io/react-native/docs/linking-libraries-ios

我建议你仔细阅读step3。 试试吧!

关于ios 手动安装 firebase,出现错误 "firebase.h"找不到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54355689/

相关文章:

ios - 如何在 plist ios 的 Collection View 中显示有限的项目

android - 将 Web 应用程序部署为移动应用程序

ios - 如何在 swift 3 中动态增加 ScrollView 高度的高度?

android - Firestore API 之前未在项目 416788152002 中使用过或已被禁用

ios - cocoa pods 在 iOS 项目上安装不起作用

react-native - 使用 Hook 以编程方式更新功能组件中的 react 导航标题标题

ios - UINavigationBar 的奇怪行为

firebase - getter 'uid'在null上被调用

android - 如何删除此警告 "Please apply google-services plugin at the bottom of the build file."

javascript - 在 React 中按下按钮时重新渲染 prop 数据