0

I am getting the following error:

-[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x56bb95c

Is it possible to track down what's the variable responsible of this error? The stack call is not helping me in this scenario.

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
tiguero
  • 11,477
  • 5
  • 43
  • 61
  • possible duplicate of [How to resolve 'unrecognized selector sent to instance'?](http://stackoverflow.com/questions/861626/how-to-resolve-unrecognized-selector-sent-to-instance) – DrummerB Mar 29 '13 at 14:30

1 Answers1

3

You have a BOOL type while you are considering it as NSString and trying to compare with some other string by isEqualToString:

 [__NSCFBoolean isEqualToString:]
  ....^^^^^^^^^ 
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
  • This is what i thought but how can i spot in my code wich variable trigger this error? – tiguero Mar 29 '13 at 14:37
  • If you are not sure, you called explicitly isEqualToString or you have a BOOL. Then you can use BreakPoint from init/viewDidLoad and go on to check each one. step over/step into etc – Anoop Vaidya Mar 29 '13 at 14:39