React Native Firebase错误线程1 SIGABRT - iOS

Job*_*ken 12 sigabrt ios firebase react-native react-native-firebase

问题

在遵循react-native-firebase教程后,我的应用程序在成功构建后挂起.我在Xcode中遇到的错误是:Thread 1: signal SIGABRT.我从其他问题中了解到这与连接有关,但我不知道为什么会出现这种错误.

这是我的第一个React Native项目,第一次使用Xcode.

我做了什么

  1. 我加react-native-firebasefirebase.
  2. react-native link react-native-firebase.
  3. 通过将GoogleService-Info.plist拖入Xcode编辑器,将其添加到项目中.
  4. 停止所有Xcode任务并退出Xcode.
  5. 做了一个pod init.
  6. 将podfile调整为以下内容:

    # Uncomment the next line to define a global platform for your project
    platform :ios, '9.0'
    
    target 'Enso' do
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
    # use_frameworks!
    
      # Pods for Enso
        pod 'Firebase/Core'
    
    end
    
    Run Code Online (Sandbox Code Playgroud)
  7. 做了一个 pod install
  8. 打开xcworkspace文件
  9. 新增的#import <Firebase.h>[FIRApp configure];AppDelegate.m
  10. 清理了这个项目
  11. 运行该项目
  12. 项目构建成功,但应用程序一直挂在白色屏幕上,其中包含应用程序名称和"由React Native提供支持".
  13. 大约10秒后,Xcode编辑器将显示以下内容:Xcode中出现错误的图像

更多信息

我有这些Linked Frameworks and Libraries:

  • libRNSVG.a
  • libRNBackgroundTimer.a
  • libRNFirebase.a
  • libART.a
  • libRCTBlob.a
  • libReact.a
  • libRCTAnimation.a
  • libRCTActionSheet.a
  • libRCTGeolocation.a
  • libRCTImage.a
  • libRCTLinking.a
  • libRCTNetwork.a
  • libRCTSettings.a
  • libRCTText.a
  • libRCTVibration.a
  • libRCTWebSocket.a
  • libPos-Enso.a

我有这个Header Search Paths:

  • $(继承)
  • $(SRCROOT)/../ node_modules /反应天然背景定时器/ IOS
  • $(SRCROOT)/../ node_modules /反应天然-火力/ IOS/RNFirebase
  • $(SRCROOT)/../ node_modules /反应天然-SVG/IOS
  • $(SRCROOT)/../ IOS /荚
  • $(SRCROOT)/../ node_modules /反应天然/阵营

Mar*_*ika 1

看起来像是GoogleAppMeasurement作为 version 的依赖项导入的5.3.0

下面的简单添加Podfile解决了我的问题。

# Required by RNFirebase
pod 'Firebase/Core', '~> 5.9.0'
pod 'GoogleAppMeasurement', '~> 5.2.0'
Run Code Online (Sandbox Code Playgroud)

如这里所示