如何调试和解决AFNetworking中的崩溃问题

时间:2016-02-14 01:06:00

标签: ios objective-c exception afnetworking-2

我的iOS应用程序使用AFNetworking(2.6.1),我的排名最高的崩溃是:

Crashed: com.apple.NSURLSession-work
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0004000128ab38a0

这就是Crashlytics中大多数堆栈跟踪的样子:

Thread : Crashed: com.apple.NSURLSession-work
0  libobjc.A.dylib                0x180e29bc8 objc_msgSend + 8
1  CFNetwork                      0x181df6518 SessionConnectionLoadable::_loaderClientEvent_DidReceiveConnectionCacheKey(HTTPConnectionCacheKey*) + 56
2  CFNetwork                      0x181e75178 ___ZN19URLConnectionLoader36protocolDidReceiveConnectionCacheKeyEP22HTTPConnectionCacheKey_block_invoke + 40
3  libdispatch.dylib              0x1811fd630 _dispatch_call_block_and_release + 24
4  libdispatch.dylib              0x1811fd5f0 _dispatch_client_callout + 16
5  libdispatch.dylib              0x181209634 _dispatch_queue_drain + 864
6  libdispatch.dylib              0x1812010f4 _dispatch_queue_invoke + 464
7  libdispatch.dylib              0x18120b504 _dispatch_root_queue_drain + 728
8  libdispatch.dylib              0x18120b224 _dispatch_worker_thread3 + 112
9  libsystem_pthread.dylib        0x181411470 _pthread_wqthread + 1092
10 libsystem_pthread.dylib        0x181411020 start_wqthread + 4

我没有使用kvo,我的应用程序使用位置并始终在后台停留。

有关如何调试/重新创建的任何想法(我无法在模拟器或设备上重新创建问题)? 即使抓住异常,也不知道它在哪里或如何正确处理它就足够了......

0 个答案:

没有答案