如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER? [英] How do I debug this error: CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?
本文介绍了如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序出现错误,我不知道如何解决,以前有人看过吗:
I am getting an error in my app that I have no idea of how to figure out, has anyone seen this before:
# Binary Image Name Address Symbol
0 RepZio 0x002bd302 testflight_backtrace
1 RepZio 0x002bc996 TFSignalHandler
2 libsystem_platform.dylib 0x39ce0062 _sigtramp
3 CoreFoundation 0x2edde118 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
4 CoreFoundation 0x2ed52256 _CFXNotificationPost
5 Foundation 0x2f737c2c -[NSNotificationCenter postNotificationName:object:userInfo:]
6 Foundation 0x2f73c50a -[NSNotificationCenter postNotificationName:object:]
7 UIKit 0x3180b2cc -[UIApplication _performMemoryWarning]
8 libdispatch.dylib 0x39ba0d06 _dispatch_client_callout
9 libdispatch.dylib 0x39ba9802 _dispatch_source_invoke$VARIANT$mp
10 libdispatch.dylib 0x39ba773c _dispatch_main_queue_callback_4CF$VARIANT$mp
11 CoreFoundation 0x2ede6818 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
12 CoreFoundation 0x2ede50ec __CFRunLoopRun
13 CoreFoundation 0x2ed4fc26 CFRunLoopRunSpecific
14 CoreFoundation 0x2ed4fa0a CFRunLoopRunInMode
15 GraphicsServices 0x33a50282 GSEventRunModal
16 UIKit 0x315f3048 UIApplicationMain
17 MyAppName 0x00109afa main in main.m on Line 15
18 libdyld.dylib 0x39bc5ab6 start
丢了这个.
推荐答案
请确保在释放所有通知观察者之前将其删除.当观察者被释放并且通知中心仍具有指向该对象的指针并尝试通知它时,会发生此问题.检查所有addObserver是否具有相应的removeObserver调用.
Make sure you remove all notification observers before freeing them. This problem occurs when an observer is freed and notification center has still a pointer to that object and tries to notify it. Check that all addObserver have the corresponding removeObserver calls.
这篇关于如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文