gpt4 book ai didi

objective-c - no rule to process file 是什么意思?

转载 作者:太空狗 更新时间:2023-10-30 03:51:13 24 4
gpt4 key购买 nike

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 文件,对吗?

最佳答案

如果您没有人们提到的 .h 问题,mojtaba 所说的适用于 .m 文件 (+1)。

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

关于objective-c - no rule to process file 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16791610/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com