1
我在iOS上遇到了一些Firebase崩潰報告問題。當我在模擬器上運行我的測試應用程序時,它工作得很好。但是當我在真實設備上運行它時,什麼都沒有發生。這裏是我的示例代碼:Firebase崩潰報告不適用於iOS真實設備
import UIKit
import FirebaseCrash
class ViewController: UIViewController {
@IBOutlet weak var btn: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
btn.addTarget(self, action: #selector(ViewController.btnClicked), forControlEvents: UIControlEvents.TouchUpInside)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
func btnClicked() {
FIRCrashMessage("Cause Crash button clicked")
fatalError()
}
}
任何建議來解決我的問題?謝謝。
步驟
我安裝在Xcode應用到真實設備。
我按「command +」停止應用程序。
- 我從真實設備啓動應用程序並使其崩潰。
- 我重新啓動應用程序。
我有同樣的問題,看看我的解決方案:[ANSWER LINK](http://stackoverflow.com/questions/40160230/firebase-crashes-unreadable) – Eduardo