3

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.

Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277

1 Answers1

2

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.

David Ansermot
  • 6,052
  • 8
  • 47
  • 82
  • David thanks for answer! as I understood I need to enter it right after opening terminal?) don't need to navigate to any folder. right? – Matrosov Oleksandr May 23 '16 at 13:54
  • You should navigate inside the root folder of your project before typing this. And you can adjust the search by changing down the hierarchy if you want. – David Ansermot May 23 '16 at 13:57
  • ok yea it's helpful I found `grep "removeObserver:" * -r` but there is no result for `grep "removeKeyObserver:" * -r` – Matrosov Oleksandr May 23 '16 at 14:42