Why is Firebase Automatic Screen Reporting causing my iOS app to crash?

时光总嘲笑我的痴心妄想 提交于 2020-01-06 08:03:05

问题


I want to write data to Firebase Database using basic write code. I am programming in Swift so I created the reference to the database and followed the official directions on Firebase's help page. When I run the app using the write command:

override func viewDidLoad() {
    ref = Database.database().reference()
    ref.childByAutoId().setValue(titleText)
}

The app crashed and gives me the error:

Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist

I have already to tried to disable FirebaseScreenReporting but the app crashes and returns the error:

Analytics screen reporting is disabled. UIViewController transitions will not be logged.

I wanted to be able to write the data stored in the variable "titleText" to Firebase but I am not able to even test that without the app running correctly. How can I get the app to run and dismiss this error correctly?


回答1:


The actual error is not in Firebase Screen Reporting. The error can be found below all of that Firebase data. The actual error I was receiving was a key-coding compliant error for one of the text fields on that page.



来源:https://stackoverflow.com/questions/54390340/why-is-firebase-automatic-screen-reporting-causing-my-ios-app-to-crash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!