XCode Unknown class ***** in Interface Builder file

xcode

In an app, suddenly it's giving me the error XCode Unknown class ***** in Interface Builder file. I reviewed everything, storyboard, classes, etc.

I try to rename the class but it is the same problem, even I created a new class and copy the code in. I think XCode is taken that from a kind of cache because even properties that I deleted like the icon in the tab bar item are still present in the app when I run it.

What can be the problem?

Best Answer

Also if using a static library, don't forget to add the -ObjC flag to Other Linker Flags in your projects Build Settings tab.

If you have failed to do so, "Unknown class ... in Interface Builder file" will occur when trying to load a view controller from the static library in IB.

Just another case I experienced the error will show.