好吧,我的 Xcode 随机决定变得时髦......
我有一个名为 TVBrowseCategoryViewController 的类,这是 .h:
#import "TVBrowseCategoryCell.h"
#import "TVNativeFeedViewController.h"
@interface TVBrowseCategoryViewController : TVNativeFeedViewController
@end
起初,@interface 行给了我一个警告,“类 TVBrowseCategoryViewController 在没有指定基类的情况下定义”,但是当我构建项目时,同一行出现了这两个错误:
Cannot find interface declaration for 'TVNativeFeedViewController', superclass of 'TVBrowseCategoryViewController'; did you mean 'TVMainViewController'?
Attempting to use the forward class 'TVMainViewController' as superclass of 'TVBrowseCategoryViewController'
我已经尝试清理 Xcode、清理构建文件夹、删除派生数据、重新启动 Xcode、检查循环导入(很确定没有)但没有任何效果。
最佳答案
好吧,我错了,问题是我确实有循环导入。
关于ios - 找不到接口(interface)声明和尝试使用转发类错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21321598/