No visible @interface for class declares the selector
This is one of the most annoying bug I have with XCode (there're many, but this one is annoying as hell). I've to google for solution without any result for 2 times for this same bug. There won't be the third.
This bug happens when user declare new function in .h file, then goes to another class to use it and the error occur. I've check all the syntax, since it's a very simple getter, the code is just 3 lines long. I've cleaned the project, tried to restart xCode...etc...etc... and everything is correct.
And the solution is dead simple:
- Go to the Using class, remove the import line.
- Import .h file of the used class again, and voila, xCode let it ride the wind again (although there's nothing change).
Note: This issue is specific to the case when xCode is fucking you up. In many cases, this error will indicate that your code is wrong somewhere.
Hope this solution can help you all.
This bug happens when user declare new function in .h file, then goes to another class to use it and the error occur. I've check all the syntax, since it's a very simple getter, the code is just 3 lines long. I've cleaned the project, tried to restart xCode...etc...etc... and everything is correct.
And the solution is dead simple:
- Go to the Using class, remove the import line.
- Import .h file of the used class again, and voila, xCode let it ride the wind again (although there's nothing change).
Note: This issue is specific to the case when xCode is fucking you up. In many cases, this error will indicate that your code is wrong somewhere.
Hope this solution can help you all.
Comments
Post a Comment