Interface Builder文件中的未知类信息

CTS*_*idt 11 error-handling interface-builder ios

就像在标题中我得到了疯狂的按摩,我无法处理它

Unknown class info in Interface Builder file.
Run Code Online (Sandbox Code Playgroud)

每次我运行我的项目时,都会出现一些疯狂的错误或者一些条形消失.有谁知道该怎么办?

Bre*_*don 24

按顺序尝试这个:

  1. 产品 - >在Xcode中清洁
  2. 从模拟器或设备中删除应用程序
  3. 重启Xcode
  4. (Build&)再次运行

如果这没有帮助,您可能会引用一个必须手动查找和删除的笔尖或故事板中的类.


QUs*_*erS 10

警告可能是因为您已为其中一个UIView子类分配了已删除/已删除的自定义类名.为了解决这种情况,

Open interface builder class as Source Code by right clicking on it (Open As -> Source Code).
Find your unknown class name in the source file. And handle accordingly.
Run Code Online (Sandbox Code Playgroud)

它对我有用.