Warning: no rule to process file

From NimbleKit

Jump to: navigation, search

[edit] The "warning: no rule to process file" error and how to cure it

After adding a javascript file to a project, you might get an error message similar to this when compiling:

 warning: no rule to process file '$(PROJECT_DIR)/jquery.min.js' of type sourcecode.javascript for architecture i386

What's happening here is, whenever a .js file is added to a project, Xcode (wrongly) adds it to the "Compile Sources" folder.

[edit] To fix it....

Go to Targets (in the "Groups & Files" pane on the left of Xcode), click the arrow next to it, then click the arrow next to your projects name, and drag the jquery.min.js file* from the "compile sources" folder to the "Copy Bundle Resources" folder. Do a "Build - clean all targets" from the main menu to build again and the problem should have been cured.

  • or whatever file you added