gpt4 book ai didi

ios - 在 iOS 上安装 react-native-firebase 的问题

转载 作者:行者123 更新时间:2023-12-01 15:57:54 41 4
gpt4 key购买 nike

我正在尝试在 iOS 项目上安装 react-native-firebase。
我已按照所有说明进行操作,但仍有问题

我收到以下错误:

enter image description here

但是,我可以导入 <Firebase.h>来自 AppDelegate.m文件

我尝试了不同的方法来排除故障:

  • pod update
  • 未注释 platform :ios, '9.0'
  • 清理项目
  • 重装一切
  • 在build设置中添加了标题搜索路径:$(SRCROOT)/../node_modules/react-native-firebase/ios/RNFirebase在递归

  • enter image description here

    enter image description here

    ...我不知道还有什么可以尝试的!

    这是Pod下载的依赖:
    Using Firebase (5.1.0)
    Using FirebaseAnalytics (5.0.1)
    Using FirebaseCore (5.0.2)
    Using FirebaseInstanceID (3.0.0)
    Using GoogleToolboxForMac (2.1.4)

    知道还有什么可能导致这个问题吗?

    谢谢

    最佳答案

  • 使用最新版本运行更新 react-native-firebase:react-native-firebase@latest 使用 yarn 或 npm。
  • 在您的 pod 文件中,确保您有以下完全相同的行:pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios/RNFirebase.podspec'
  • cd ios 并运行 pod update RNFirebase。
  • 如果以上步骤没有解决问题。尝试替换 :pod 'Firebase/Core', '~>
    4.13.0'

  • 关注 this链接如果它仍然存在

    关于ios - 在 iOS 上安装 react-native-firebase 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50641658/

    41 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com