首页 文章

React Native Firebase错误线程1 SIGABRT - iOS

提问于
浏览
10

问题

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

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

我做了什么

  • 我添加了 react-native-firebasefirebase .

  • 然后 react-native link react-native-firebase .

  • 通过将GoogleService-Info.plist拖入Xcode编辑器,将其添加到项目中 .

  • 停止所有Xcode任务并退出Xcode .

  • 做了 pod init .

  • 将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
  • 做了 pod install

  • 打开xcworkspace文件

  • 添加 #import <Firebase.h>[FIRApp configure];AppDelegate.m

  • 清理了项目

  • 运行项目

  • 项目构建成功,但应用程序一直挂在白色屏幕上,其中包含应用程序名称和'Powered by React Native' .

  • 大约10秒钟后,Xcode编辑器将显示以下信息:Image with error in 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

我在_2413347中有这个:

  • $(继承)

  • $(SRCROOT)/../ node_modules / react-native-background-timer / ios

  • $(SRCROOT)/../ node_modules / react-native-firebase / ios / RNFirebase

  • $(SRCROOT)/../ node_modules / react-native-svg / ios

  • $(SRCROOT)/../ ios / Pods

  • $(SRCROOT)/../ node_modules / react-native / React

1 回答

相关问题