由於解析崩潰報告正在貶值,因此我們正在轉向Google Analytics(分析)。 我遵循指南併成功接收視圖跟蹤和例外報告。無法收到崩潰報告
這裏是我的設置怎麼GA
// Configure tracker from GoogleService-Info.plist.
var configureError:NSError?
GGLContext.sharedInstance().configureWithError(&configureError)
assert(configureError == nil, "Error configuring Google services: \(configureError)")
// Optional: configure GAI options.
let gai = GAI.sharedInstance()
gai.trackerWithTrackingId("UA-XXXXXX-1")
gai.trackUncaughtExceptions = true // report uncaught exceptions
gai.dispatchInterval = 1
gai.defaultTracker.allowIDFACollection = true
#if DEBUG
gai.logger.logLevel = GAILogLevel.Verbose // remove before app release
#endif
我試圖使由碰撞(在AppDelegate.swift didFinishLaunchingWithOptions):
delay(20.0) {() ->() in
let _ = [String]()[10];
}
而且我不能得到任何崩潰報告來自GA儀表板。
我試過把這條線移到IBAction,但失敗了。
我的測試步驟:
在設備調試 - >(20S) - >崩潰
調試設備上的第2次 - >(20S) - >崩潰
運行沒有調試的應用程序 - >(20s) - >崩潰
無調試運行應用程序 - >(20s) - >崩潰
同意。這就是爲什麼我搬到crashlytics。與GA相比,他們確實能夠迅速提供崩潰報告。 – Horst