Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown class <MyClass> in Interface Builder file in Swift [duplicate]

I am programming the ToDoList Objective-C Tutorial from Apple, but try to do it in Swift. (Tutorial)

Now that I am ready, when I run the Application, I get the error:

Unknown class AddToDoItemViewController in Interface Builder file in Swift.

In this thread, somebody solved a, as I think similar Problem with [MyClass class] in Objective-C. Is there a similar way to do this in Swift?

like image 719
McLawrence Avatar asked Jul 27 '14 16:07

McLawrence


1 Answers

I found that on a lot of my Swift Controllers there's a new Module Option which was set to None Failure

So to fix it just set the Class to a different one and then set it back. That gave me this

enter image description here

like image 199
hdost Avatar answered Oct 27 '22 00:10

hdost