ios - FireBase 错误信号 SIGABRT

标签 ios firebase

我正在尝试在我的应用中使用 firebase。我按照在线步骤进行了一个新项目。

当我尝试写作时 FirebaseApp.configure() 在我的 appdelegate 中它给了我一个 线程 1:信号 SIGABRT 如果我删除它,应用程序将运行。

我的项目目录中确实有我的 GoogleService-info.plist。

我的 podfile 看起来像这样:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'FireBaseTest' do
# Comment the next line if you're not using Swift and don't want to 
use dynamic frameworks
use_frameworks!

 # Pods for FireBaseTest
 pod 'Firebase/Core'
end

最佳答案

确保设置文件的目标成员。

  1. 在 Xcode 项目导航器中选择 GoogleService-Info.plist

enter image description here

  1. 在右侧的实用程序 Pane 中启用目标。

enter image description here

关于ios - FireBase 错误信号 SIGABRT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46579492/

相关文章:

ios - Xcode Playground 显示 "Empty Image"

ios - 在 iOS 中搜索自定义对象

ios - 过渡导航栏标题

reactjs - 如何使用react-router在firebase托管的create-react-app中提供robots.txt和sitemap.xml

ios - 可本地化的字符串和默认值

ios - Google 登录与 Facebook 登录冲突

android - 在 iOS 应用程序和 Firebase/Google Analytics 中配置多个 Firebase 项目运行时

java - 实时到 firestore 相当于 .push()

android - 无法解析 FirebaseMessagingService android

android - 如何在 Firebase Crashlytics 中查看崩溃的详细信息?