Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown class in Interface Builder file

Tags:

xcode

iphone

Why am I still getting this error when I run my iPhone app? The file is a ViewController that I have been working to delete and replace, but it just won't die. As far as I know, I don't have any reference (string or otherwise) to this file in my project.

  • I have deleted the related file (I'm trying to get rid of it.)
  • I have cleaned the project and rebuilt.
  • I have "Reset Content and Settings" in my simulator.
  • I have done a grep (grep -i -r "TheClassName" *) and nothing matches except my UserInterfaceState.xcuserstate file.
  • I have searched the code using XCode's Find/Replace tab.
  • I have double checked my Build Phases and am pretty sure it isn't in there (its a large project).

Any other ideas? I've spent way too many hours trying to figure this simple thing out; I must be missing something.

Thanks!

like image 495
Brett Avatar asked Dec 05 '22 11:12

Brett


1 Answers

Check your nibs or storyboard, and make sure none of your views are set to the class!

like image 166
Reid Avatar answered Dec 19 '22 03:12

Reid