XCODE 7.1 Swift 2 Interface Builder文件中的未知类 [英] XCODE 7.1 Swift 2 Unknown class in Interface Builder file

查看:168
本文介绍了XCODE 7.1 Swift 2 Interface Builder文件中的未知类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了新的Cocoa Touch文件。命名为SwipingViewController。

I've created new Cocoa Touch File. Named it SwipingViewController.

然后尝试向ViewController添加自定义类。

Then try to add Custom Class to ViewController.

当我运行应用程序时,我收到一个错误

And when I run the app i receive an error

2015-10-09 10:53:25.054 ParseStarterProject [ 5369:389307]在Interface Builder文件中未知类SwipingViewController。

我试图在Google中自己找到。
我找到了一些解决方案
Xcode 6 Strange Bug:Interface Builder文件中的未知类

I've tried to find in Google by myself. I've found some solutions Xcode 6 Strange Bug: Unknown class in Interface Builder file

但他们都没有帮助解决这个问题。

But they all did not help to fix the problem.

有什么想法如何解决?

这里是我的项目文件

推荐答案

在自定义类字段下面的故事板中,模块设置为无。将其更改为您的应用程序模块或只是删除并重新输入类,应该设置为默认像这样:

In storyboard below the Custom Class field the module is set to None. Change that to your app module or just remove and enter class again, it should set to default like this:

这篇关于XCODE 7.1 Swift 2 Interface Builder文件中的未知类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆