Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]

人盡茶涼 提交于 2019-12-01 17:01:57

If these reporting messages confuse you uncheck them:

  1. Edit Scheme...

  2. Uncheck "Main Thread Checker" in Run > Diagnostics

Check also ARKit template Xcode project Main Thread Checker log console.

If UIApplication or UIApplicationDelegate method is called from another thread you can disable checking thread as in CGN answer, but it will disable this checker completely. You can also subclass what is necessary and call metod of superclass on main thread. This way you can still use Main Thread Sanitizer in other places in code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!