Xcode 7 found a place where it prints a line with a log error

吃可爱长大的小学妹 提交于 2019-12-12 12:51:02

问题


I have a log in XCode output console:

Use -removeDeferredKeyObserver: instead of -removeKeyObserver:

I've searched trough the project using keyword removeKeyObserver but have not found any matches.

My question is how to found a place (line) after Xcode prints this line in console.


回答1:


As it can comes from a library or inside core frameworks, you should :

  1. Open terminal
  2. use grep "removeKeyObserver:" * -r to find where the method is called

It used this method today for about the same purpose.



来源:https://stackoverflow.com/questions/37391609/xcode-7-found-a-place-where-it-prints-a-line-with-a-log-error

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