ios – 如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?

前端之家收集整理的这篇文章主要介绍了ios – 如何调试此错误:CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在我的应用程序中收到错误,我不知道如何弄清楚,有没有人见过这个:
#   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调用.
原文链接:https://www.f2er.com/iOS/334795.html

猜你在找的iOS相关文章