I’m getting the following error when I try to run my project on my iPhone:
Unknown class LoginView in Interface Builder file.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginView" nib but the view outlet was not set.'
I created a LoginView .xib file earlier, but deleted it, and now it seems to still be trying to access it. I made sure it’s not referencing LoginView anywhere in my project, but I’m still getting the error. The weird thing is it only happens on the device, not in the simulator.
Any ideas?
Try doing a clean all and also make sure that the file was deleted, rather than just removed from the project.