JohnBigs
JohnBigs

Reputation: 2811

Unknown class ViewController in Interface Builder file

I can't locate this error...:/

I'm working with nibs, and I tried to read some of the answers to this similar errors and found not link it to hide, can someone please help?

Let me know if you want me to provide more info , tnx

this is my HomeViewController nib file: (it's my root view controller where I get the warning in the log):

enter image description here

I think its got something to do with the fact that I deleted the default classes apple giving you when creating a single view application. But maybe I didn't know I need to delete it somewhere else too..?

Upvotes: 4

Views: 2366

Answers (3)

Andres C
Andres C

Reputation: 463

If your are using pods make sure you are linking against the corresponding library.

Upvotes: 0

Shashi3456643
Shashi3456643

Reputation: 2041

I have also experienced this kind of issue. Check in .h file HomeViewController might not be inheriting the UIViewController class. In .h file you should have something like this

Interface HomeViewController: UIViewController {

}

Upvotes: 0

Maarten
Maarten

Reputation: 351

You might have set the custom class of your nib to a class that does not exist.

screenshot

Upvotes: 3

Related Questions