小编Job*_*ken的帖子

React Native Firebase错误线程1 SIGABRT - iOS

问题

在遵循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> …

sigabrt ios firebase react-native react-native-firebase

12
推荐指数
1
解决办法
4179
查看次数