Fogmeister Fogmeister - 1 year ago 201
Objective-C Question

Unknown Class **** in Interface Builder file

I added a UIView xib file using the root class of


I created it in the wrong place and so moved it in the project. Same project just a different folder/group.

I then had a problem when running saying...

Unknown Class MyView in Interface Builder file

I couldn't work out what was wrong so I have now deleted the files both from the project and from the directory.

I've done a search using SublimeText2 for the string "MyView" and it doesn't exist anywhere in the project.

I've reset the simulator, cleaned the project and the build folder and deleted derived data.

Still getting the same error.

Any ideas what I can do now?

Answer Source

OK, so I deleted all references to the class causing the problem but still nothing.

However, I also had a UIViewController subclass called MyViewController. This wasn't being loaded in any IB file so I don't know how it was causing the problem.

I changed the name to MyOtherViewController.

Build - Run - works.

I don't know how or why but it works now.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download