Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick way to find the cause of incomplete implementation warning

Tags:

ios

warnings

Recently, I was cleaning up my class which had a lot of unused methods and variables. When I built my project, xCode gave a warning of Incomplete implementation. The class is huge and it took me a lot of time to find out which method was not implemented in the .m. To prevent spending so much time on this warning in the future, I would like to know if there's a quicker way to find out the unimplemented methods. I might be missing some built-in feature of xCode!

EDIT- (From the answers) Just in case you feel the need to visualize what is to be done, take a look at this:

enter image description here

First, click on the warning in the break-points tab to see the warning details in a yellow tab as below. A single click on the highlighted part will take you straight to the incomplete methods.

like image 598
tipycalFlow Avatar asked Mar 11 '12 07:03

tipycalFlow


3 Answers

  • You will see the yellow sign of warning next to the @implementation Classname in the .m file ..
  • Click a couple of times on the yellow symbol and Xcode will take you straight to the required method..

Edit (Since comment has received a lot of votes.)

The above one is fast way..and it might not work in future version of Xcode

Proper Way (as given by @alex gray)

  1. In editor-> Go to Issue Navigator
  2. There you can find each warning with Xcode jumping to the issue directly on click.Revealing the warning using drop down also lets you know more detail about the issue
like image 92
Shubhank Avatar answered Oct 18 '22 23:10

Shubhank


Click on the exclamation mark in Navigators Bar (or Command-4, or View -> Navigators -> Show Issue Navigator), then click on the disclosure button with Semantic Issue - Incomplete implementation and then on the warning.

See example below

enter image description here

like image 9
Wojciech Rutkowski Avatar answered Oct 18 '22 23:10

Wojciech Rutkowski


In the navigator click on the disclosure triangle to "expand" the issue, which will in turn show you the actually missing method.

(this is a copy of alex gray comment because appropriate location of it in answers)

like image 3
sergtk Avatar answered Oct 18 '22 22:10

sergtk