我在Crashlytics遇到了崩溃,我无法理解它是什么。我在网上找不到任何东西,这真的很奇怪。 问题是无法识别的选择器[RMMessageFormatter getFormatedStatusFromDisk]
我甚至无法在我的工作区中找到这个类或这个方法......
这里是崩溃堆栈:
Thread : Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x0000000185e86530 __exceptionPreprocess + 132 1 libobjc.A.dylib 0x0000000196e640e4 objc_exception_throw + 60 2 CoreFoundation 0x0000000185e8d5f4 __methodDescriptionForSelector 3 CoreFoundation 0x0000000185e8a3ac ___forwarding___ + 928 4 CoreFoundation 0x0000000185d8ec4c _CF_forwarding_prep_0 + 92 5 Dizzit 0x00000001003624e0 -[RMMessageFormatter getFormatedStatusFromDisk] + 121500 6 Dizzit 0x0000000100361a3c -[RMMessageFormatter formatWithQueues:] + 118776 7 Dizzit 0x0000000100329478 -[RMMessageSender prepareMessage] 8 Dizzit 0x0000000100329838 -[RMMessageSender prepareAndSendMsg] 9 Dizzit 0x00000001003296e8 -[RMMessageSender flushSendingQueue] 10 Dizzit 0x000000010032a69c __24-[RMMessageSender flush]_block_invoke 11 libdispatch.dylib 0x00000001974b5994 _dispatch_call_block_and_release + 24 12 libdispatch.dylib 0x00000001974b5954 _dispatch_client_callout + 16 13 libdispatch.dylib 0x00000001974c2780 _dispatch_root_queue_drain + 1848 14 libdispatch.dylib 0x00000001974c3c4c _dispatch_worker_thread3 + 108 15 libsystem_pthread.dylib 0x000000019769522c _pthread_wqthread + 816 16 libsystem_pthread.dylib 0x0000000197694ef0 start_wqthread + 4
如果有人可以帮我理解什么是RMMessage以及如何解决这个问题。
致以最诚挚的问候,
答案 0 :(得分:0)
所以我发现了问题。 谷歌分析+ AFNetworking似乎是原因。 我有[GAI sharedInstance] .dispatchInterval = 20来每隔20秒发送一次跟踪数据,但有时我会遇到这种情况。
不要删除此行,只需设置一个负值即可停止自动发送: [GAI sharedInstance] .dispatchInterval = -1
我添加[[GAI sharedInstance] dispatch];在applicationDidEnterBackground中,当用户离开应用程序时发送跟踪数据。
现在好了