2017-10-05 221 views
1

我试图在我的应用程序中使用firebase。我通过一个新项目在线执行这些步骤。FireBase错误信号SIGABRT

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

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

我podfile looke这样的:

# 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 
+0

粘贴在这里,整个崩溃日志。 – Glenn

回答

1

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

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

enter image description here

  • 启用在右窗格公用事业目标。
  • enter image description here

    +0

    单击复选框。 https://i.stack.imgur.com/bI8Yf.png(红色箭头) –

    +0

    它的工作!谢谢 –