Oleksandr Matrosov
Oleksandr Matrosov

Reputation: 27157

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

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.

Upvotes: 3

Views: 87

Answers (1)

David Ansermot
David Ansermot

Reputation: 6112

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.

Upvotes: 2

Related Questions