2017-10-05 222 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

    它的工作!謝謝 –