I’m encountering a random Google Analytics crash issue. This issue happens when my App starts and trying to initial GANTracker. It happens randomly, very hard to reproduce. I wonder if there is anything I missed or I should avoid in implementing GA initial.
这里是我的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:]
任何建议都会受到赞赏。