Septiadi Agus
Septiadi Agus

Reputation: 1775

What is no rule to process file mean?

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

I am trying to implement YIFullScreenScrollDemo

After keep failing I just copy the whole .h and .m file to the main project. Actually I keep reference.

Now this code for example, pass compile check:

self.fullScreenScroll = [[YIFullScreenScroll alloc] initWithViewController:self scrollView:self.tableView];

Yet, at run time, I got:

YIFullScreenScrollDemo[82387:c07] -[FirstViewController setFullScreenScroll:]: unrecognized selector sent to instance 0x7577e80

Also I got these 4 warnings:

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

What is the problem?

Note: not duplicate of the other one compilation warning: no rule to process file for architecture i386

This one is for .m files. The other question is for .h file

Naturally we do need to include the .m files right?

Upvotes: 6

Views: 2852

Answers (1)

Travis M.
Travis M.

Reputation: 11257

What mojtaba said works for .m files (+1) in the event that you don't have the .h issue people are referring to.

Click on the Product menu, hold ALT to enable the "Clean Build Folder..." option and then recompile. Error went away.

Upvotes: 6

Related Questions