CLSAnalyticsController transmitPackagedSessionFragments 生成 NSInternalInconsistencyException

CLSAnalyticsController transmitPackagedSessionFragments generated NSInternalInconsistencyException

我在 FABMultipartMimeStreamEncoder addFileData 中收到崩溃报告 NSInternalInconsistencyException,它由 CLSAnalyticsController transmitPackagedSessionFragments[=22] 调用=].

我按照所有关于将 Crashlytics 纳入项目的说明进行操作,但仍然收到来自测试用户之一的崩溃报告。

堆栈信息如下。

谢谢

Thread : Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x0000000184184f5c __exceptionPreprocess
1  libobjc.A.dylib                0x0000000198d7bf80 objc_exception_throw
2  CoreFoundation                 0x0000000184184e2c +[NSException raise:format:]
3  Foundation                     0x0000000185073f3c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  MyApp                         0x00000001001bab0c -[FABMultipartMimeStreamEncoder addFileData:fileName:mimeType:fieldName:]
5  MyApp                         0x00000001001bae14 -[FABMultipartMimeStreamEncoder addFile:fileName:mimeType:fieldName:]
6  MyApp                         0x00000001001a93ac __74-[CLSAnalyticsNetworkingClient requestForLogFilesAtURLs:toURL:withAPIKey:]_block_invoke
7  MyApp                         0x00000001001ba5f8 -[FABMultipartMimeStreamEncoder encode:]
8  MyApp                         0x00000001001ba274 +[FABMultipartMimeStreamEncoder populateRequest:withDataFromEncoder:]
9  MyApp                         0x00000001001a9268 -[CLSAnalyticsNetworkingClient requestForLogFilesAtURLs:toURL:withAPIKey:]
10 MyApp                         0x00000001001a8f70 -[CLSAnalyticsNetworkingClient transmitLogFilesAtURLs:toURL:withAPIKey:completionHandler:]
11 MyApp                         0x00000001001a6168 -[CLSAnalyticsController transmitNextPackagedSessionFragment:]
12 MyApp                         0x00000001001a656c __59-[CLSAnalyticsController transmitPackagedSessionFragments:]_block_invoke
13 libdispatch.dylib              0x00000001995757b0 _dispatch_call_block_and_release
14 libdispatch.dylib              0x0000000199575770 _dispatch_client_callout
15 libdispatch.dylib              0x000000019958175c _dispatch_queue_drain
16 libdispatch.dylib              0x0000000199579274 _dispatch_queue_invoke
17 libdispatch.dylib              0x000000019958362c _dispatch_root_queue_drain
18 libdispatch.dylib              0x000000019958334c _dispatch_worker_thread3
19 libsystem_pthread.dylib        0x0000000199789478 _pthread_wqthread
20 libsystem_pthread.dylib        0x0000000199789028 start_wqthread

来自 Crashlytics 团队的 Todd。您看到的问题与 Crashlytics 的 SIGABRT 崩溃有关。这意味着我们要么无法在应用程序崩溃终止 Crashlytics 之前解除崩溃。通过升级到最新版本的 SDK,您可能会更幸运地解决此崩溃问题。