美文网首页程序员
Xcode报错Cannot find interface dec

Xcode报错Cannot find interface dec

作者: 小锤子_ | 来源:发表于2017-08-13 21:58 被阅读419次

在项目中引用了ToastUIView 一个自定义的弹窗类,但是确报错Cannot find interface declaration for....,感觉导入什么的都没错,网上查阅资料后发现

原因:该类比NSObject.h先一步编译了。

解决方法:

1.生产PrefixHeader.pch,方法链接

2.在PrefixHeader.pch中,假如如下代码

#import

#import

#import"ToastUIView.h"

主要上面三行代码的顺序,非常重要...

相关文章

网友评论

    本文标题:Xcode报错Cannot find interface dec

    本文链接:https://www.haomeiwen.com/subject/wozerxtx.html