我遇到了一個隨機的Google Analytics崩潰問題。 當我的應用程序啓動並嘗試初始化GANTracker時,會發生此問題。 它隨機發生,非常難以複製。我想知道是否有任何我錯過了,或者我應該避免執行GA初始。iOS Google Analytics崩潰,隨機啓動
這裏是我的GANTracker初始代碼:
#define GAKey @「UA-xxxxxx-x"
static const NSInteger kGANDispatchPeriodSec = 10;
[[GANTracker sharedTracker] startTrackerWithAccountID:GAKey
dispatchPeriod:kGANDispatchPeriodSec
delegate:nil];
當我開始了這一點,我的代碼使用方法做一些同步的網絡活動中的另一個輔助線程。
[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]
這裏是崩潰日誌,希望它有助於
-[GANTracker startTrackerWithAccountID:dispatchPeriod:delegate:]
-[GANPersistentEventStore init]
-[GANPersistentEventStore initWithPath:]
-[GANPersistentEventStore setupStatements]
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
+[NSException raise:format:arguments:]
任何建議,將不勝感激!
謝謝你的信息,雖然我還沒有得到任何線索。 ... – user268743
我收到類似的崩潰:***由於未捕獲的異常'NSInternalInconsistencyException',原因:'錯誤:無法準備選擇custom_var_cache語句:1'嘗試在try catch中嘗試換行,而不是記錄發生此錯誤的用戶 –
try/catch wrap對我無效,是否做過這項工作你是Eamonn?不過看到這崩潰的IOS5 –