Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../../Classes/UIViewController+YIFullScreenScroll.m' of type file for architecture i386
我正在尝试实现YIFullScreenScrollDemo
在保持失败后,我只将整个.h和.m文件复制到主项目中。其实我一直在参考。
现在这段代码通过编译检查:
self.fullScreenScroll = [[YIFullScreenScroll alloc] initWithViewController:self scrollView:self.tableView];
然而,在运行时,我得到了:
YIFullScreenScrollDemo[82387:c07] -[FirstViewController setFullScreenScroll:]: unrecognized selector sent to instance 0x7577e80
我还收到了这4条警告:
Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../../Classes/UIViewController+YIFullScreenScroll.m' of type file for architecture i386
Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../../Classes/YIFullScreenScroll.m' of type file for architecture i386
Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../Pods/JRSwizzle/JRSwizzle.m' of type file for architecture i386
Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../../Classes/UIView+YIFullScreenScroll.m' of type file for architecture i386
有什么问题?
注意:不能与另一个compilation warning: no rule to process file for architecture i386
重复这个是针对.m文件的。另一个问题是.h文件
当然我们确实需要包含.m文件吗?
答案 0 :(得分:6)
如果你没有人们所指的.h问题,mojtaba所说的.m档案(+1)是有用的。
单击产品菜单,按住ALT以启用"清洁构建文件夹..."选项然后重新编译。错误消失了。