问题
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 :
- Open terminal
- 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