XCode “unrecognized selector sent to instance”

by tmillhouse on August 2, 2010

So I’ve had this problem off and on for the past couple of days while working on my latest iPhone application, but it seemed to come and go, so I didn’t pay much attention to it until today.

The problem got so bad, that I couldn’t do anything within xcode without it freezing up and displaying “unrecognized selector sent to instance” in an error popup dialog. I searched Google, and it seems that many people have experienced the same issue, but not to the extend that I was having. I finally stumbled upon a link that seemed to solve my issue: http://djuncas.blogspot.com/2009/03/unrecognized-selector-sent-to-instance.html.

It turns out that I had modified the method signatures of some files that were referenced from IB (Interface Builder); however, I didn’t upload those references, and so xcode didn’t know how to link properly. Although this was a mistake on my part, I feel that xcode should at least handle this exception more elegantly than freezing up. Props go to Mads Godvin Jensen for documenting the problem in his blog, and I’m echoing the solution as a way to remember this myself.

{ 3 comments… read them below or add one }

medical assistant August 5, 2010 at 1:05 pm

Great information! I’ve been looking for something like this for a while now. Thanks!

Wordpress Themes August 9, 2010 at 9:55 pm

Genial dispatch and this fill someone in on helped me alot in my college assignement. Thanks you seeking your information.

procadgio December 30, 2010 at 10:00 pm

“I searched Google, and it seems that many people have experienced the same issue, but not to the extend that I was having. I finally stumbled upon a link that seemed to solve my issue: http://djuncas.blogspot.com/2009/03/unrecognized-selector-sent-to-instance.html.
You can see more?

Leave a Comment

Previous post:

Next post: