Job*_*ken 12 sigabrt ios firebase react-native react-native-firebase
在遵循react-native-firebase教程后,我的应用程序在成功构建后挂起.我在Xcode中遇到的错误是:Thread 1: signal SIGABRT.我从其他问题中了解到这与连接有关,但我不知道为什么会出现这种错误.
这是我的第一个React Native项目,第一次使用Xcode.
react-native-firebase和firebase.react-native link react-native-firebase.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
Run Code Online (Sandbox Code Playgroud)pod install#import <Firebase.h>和[FIRApp configure];以AppDelegate.m我有这些Linked Frameworks and Libraries:
我有这个Header Search Paths:
看起来像是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)
如这里所示
| 归档时间: |
|
| 查看次数: |
4179 次 |
| 最近记录: |