崩溃 [RMMessageFormatter getFormatedStatusFromDisk] (IOS obj-c)
Crash [RMMessageFormatter getFormatedStatusFromDisk] (IOS obj-c)
我在 Crashlytics 中发生崩溃,我无法理解它是什么。我在互联网上什么也没找到,这真的很奇怪。
问题是无法识别的选择器 [RMMessageFormatter getFormatedStatusFromDisk]
我什至在我的工作区中找不到此 class 或此方法...
这里是崩溃堆栈:
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 以及如何解决这个问题。
此致,
所以我发现了问题。
Google analytics + AFNetworking 似乎是原因。
我有 [GAI sharedInstance].dispatchInterval = 20 每 20 秒发送一次跟踪数据,但有时我会崩溃。
不要删除此行,只需设置一个负值即可停止自动发送:
[GAI sharedInstance].dispatchInterval = -1
我添加[[GAI sharedInstance] dispatch];在 applicationDidEnterBackground 中,在用户离开应用程序时发送跟踪数据。
现在好像可以了
我在 Crashlytics 中发生崩溃,我无法理解它是什么。我在互联网上什么也没找到,这真的很奇怪。 问题是无法识别的选择器 [RMMessageFormatter getFormatedStatusFromDisk]
我什至在我的工作区中找不到此 class 或此方法...
这里是崩溃堆栈:
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 以及如何解决这个问题。
此致,
所以我发现了问题。 Google analytics + AFNetworking 似乎是原因。 我有 [GAI sharedInstance].dispatchInterval = 20 每 20 秒发送一次跟踪数据,但有时我会崩溃。
不要删除此行,只需设置一个负值即可停止自动发送: [GAI sharedInstance].dispatchInterval = -1
我添加[[GAI sharedInstance] dispatch];在 applicationDidEnterBackground 中,在用户离开应用程序时发送跟踪数据。
现在好像可以了