【问题标题】:Getting weird error on iOS react native project在 iOS 反应原生项目上出现奇怪的错误
【发布时间】:2021-02-27 13:10:10
【问题描述】:

我正在使用本机反应,我正在尝试启动我的 iOS 应用程序。它具有 React 本机 firebase SDK。请帮忙。我已经在应用委托中初始化了 firebase

【问题讨论】:

    标签: ios firebase react-native firebase-cloud-messaging


    【解决方案1】:

    请验证安装步骤

    # Install & setup the app module
    yarn add @react-native-firebase/app
    
    # Install the messaging module
    yarn add @react-native-firebase/messaging
    #Update pods
    pod install --repo-update   
    #Insert this to Podfile
    $FirebaseSDKVersion = '6.0.0'
    #Install changes
    pod install --repo-update   
    # If you're developing your app using iOS, run this command
    cd ios/ && pod install
    

    https://rnfirebase.io/messaging/usage

    【讨论】:

    • 感谢您的建议。仍然有问题。
    【解决方案2】:

    您的firebase 模块似乎没有正确安装。按照此链接安装配置您的firebaseLink

    【讨论】:

      猜你喜欢
      • 2013-11-16
      • 1970-01-01
      • 2018-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多