Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown class in Interface Builder file. Xcode 6 and Swift

I started a vanilla master detail project with swift. If I add a new view controller and set the custom class, then the modules list is empty and it is not possible to choose a module. The error message "Unknown class in Interface Builder file." appears in the console if I run the code. How can I setup the storyboard to know the custom class and module?

How it should be. The two classes from the template are just fine.

How it should be

and how it is

Missing module

I have to add customModule="Target_Name" customModuleProvider="target" to the interface builder source code. That is really annoying! open .storyboard as source code

Update: If I move the whole project directory to another, e.g. to the desktop it works. Looks like my directory with the name "Repository" is broken. Don't know why :(

like image 939
zeiteisen Avatar asked Nov 08 '14 12:11

zeiteisen


1 Answers

I used to encounter the same issue, I finally found that the StoryBoard's Target Membership has been set incorrectly

enter image description here.

like image 172
Quanlong Avatar answered Nov 13 '22 04:11

Quanlong