处理文件意味着什么没有规则?

Sep*_*gus 5 objective-c xcode4.5

Warning: no rule to process file '$(PROJECT_DIR)/YIFullScreenScrollDemo/../../Classes/UIViewController+YIFullScreenScroll.m' of type file for architecture i386
Run Code Online (Sandbox Code Playgroud)

我正在尝试实现YIFullScreenScrollDemo

在保持失败之后,我只需将整个.h和.m文件复制到主项目中.其实我继续参考.

现在这个代码例如,传递编译检查:

self.fullScreenScroll = [[YIFullScreenScroll alloc] initWithViewController:self scrollView:self.tableView];
Run Code Online (Sandbox Code Playgroud)

然而,在运行时,我得到了:

YIFullScreenScrollDemo[82387:c07] -[FirstViewController setFullScreenScroll:]: unrecognized selector sent to instance 0x7577e80
Run Code Online (Sandbox Code Playgroud)

我还得到了这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
Run Code Online (Sandbox Code Playgroud)

问题是什么?

注意:不能复制另一个编译警告:没有规则来处理体系结构i386的文件

这个是针对.m文件的.另一个问题是.h文件

当然我们需要包含.m文件吗?

Tra*_* M. 6

如果你没有人们所指的.h问题,mojtaba所说的.m文件(+1)是有用的.

单击"产品"菜单,按住ALT以启用"清理构建文件夹..."选项,然后重新编译.错误消失了.