Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown class FirstViewController in Interface Builder file

Tags:

iphone

When I run my application i got this I see in my console this message "Unknown class FirstViewController in Interface Builder file."

I am running TabBar application.

How can I fix this?

like image 952
kiran kumar Avatar asked Jan 04 '11 08:01

kiran kumar


3 Answers

It looks like you deleted FirstViewController.h & .m from project, but forgot to change view controller's class in nib file.

like image 146
Nickolay Olshevsky Avatar answered Oct 20 '22 10:10

Nickolay Olshevsky


Go to project , targets , build phases , compile Sources and add the unknown class ..done.

like image 40
Matthew Avatar answered Oct 20 '22 10:10

Matthew


Right click on Storyboard --> Open As --> Source Code

Find your unknown class name in the storyboard source file. It may be because you have accidentally assigned a custom class name for one of your UIView subclass'.

like image 7
user1685442 Avatar answered Oct 20 '22 11:10

user1685442