简体   繁体   English

解析错误:Interface Builder文件中的未知类PFImageView

[英]Parse error: Unknown Class PFImageView in Interface Builder file

I implemented Parse and ParseUI, and successfully use the PFImageView, load images without any error. 我实现了Parse和ParseUI,并成功使用PFImageView,加载图像没有任何错误。 But suddenly I encounter: 但是突然我遇到了:

Unknown class _TtC6Roster11PFImageView in Interface Builder file. 接口生成器文件中的未知类_TtC6Roster11PFImageView。

I have searched for similar error, and I found some: 我搜索了类似的错误,发现了一些错误:

I have tried: 我努力了:

PFImageView.self

...in Application delegate didFinishLaunchingWithOptions but that doesn't seem to work. ...在应用程序委托didFinishLaunchingWithOptions但这似乎不起作用。

Thanks. 谢谢。

Most likely the bad reference is due to Xcode storing bad IB data. 错误的引用很可能是由于Xcode存储了错误的IB数据。 You will experience similar issues if you delete IB objects (especially Xibs) or if you start working with other people on projects and are pulling/pushing updated code. 如果删除IB对象(尤其是Xibs),或者开始与其他人一起处理项目并拉/推更新的代码,则会遇到类似的问题。

One of the simplest things to try (that generally solves these issues) is to perform a clean (build -> clean, or ⇧⌘K ). 要尝试(通常可以解决这些问题)的最简单方法之一就是执行cleanbuild- > clean或⇧⌘K )。 This "Removes all the product files, as well as any object files (.o files) or other intermediate files created during the build process ( glossary )" and works pretty well. 这“删除所有产品文件,以及在构建过程中创建的所有目标文件(.o文件)或其他中间文件( 词汇表 )”,效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM