App委托因為基礎初始化而崩潰 - App Delegate crashes because of Firebase initialization -开发者知识库

App委托因為基礎初始化而崩潰 - App Delegate crashes because of Firebase initialization -开发者知识库,第1张

I am getting this error that's causing the AppDelegate to crash

我得到了導致AppDelegate崩潰的錯誤

Terminating app due to uncaught exception 'com.google.greenhouse', reason: 'Error Domain=com.google.greenhouse Code=-102 "Unable to correctly configure subspec Analytics" UserInfo={NSLocalizedFailureReason=Tracking ID must not be nil or empty., NSLocalizedDescription=Unable to correctly configure subspec Analytics}'

由於未發現異常而終止應用程序。溫室”,原因是:“域= com.google錯誤。greenhouse Code=-102“無法正確配置子spec Analytics”UserInfo={NSLocalizedFailureReason=Tracking ID不能為nil或為空。, NSLocalizedDescription=無法正確配置subspec Analytics}'

I have followed the Firebase guide from here

我從這里跟着消防指南

What can be the reason? Also I don't intend to use google analytics as for now. Any fix?

原因是什么?我也不打算像現在一樣使用谷歌分析。修復嗎?

EDIT:

編輯:

App委托因為基礎初始化而崩潰 - App Delegate crashes because of Firebase initialization -开发者知识库,Location of GoogleService-Info.plist,第2张

Note: I have removed the IDs and the Keys for this screenshot App委托因為基礎初始化而崩潰 - App Delegate crashes because of Firebase initialization -开发者知识库,GoogleService-Info.plist content,第3张

注意:我已經刪除了這個屏幕截圖的id和鍵。

9 个解决方案

#1


98  

The accepted solution was to remove Google Analytics. But you actually can have both Firebase and Google Analytics. The solution I found was to add TRACKING_ID into GoogleService-Info.plist

公認的解決方案是刪除谷歌分析。但是實際上你可以同時使用Firebase和谷歌分析。我找到的解決方案是將TRACKING_ID添加到GoogleService-Info.plist中

for example, add this:

例如,添加:

<dict>
    <key>TRACKING_ID</key>
    <string>UA-XXXXXX-X</string>

Hope it helps someone!

希望它能幫助一些人!

最佳答案:

本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复