XCode's JS complaints (and how to silence the warnings)

If you put a JS file in the Resources of your XCode project, it will complain:

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

To silence the warnings, remove any JS files you see added to the Targets → <your project> → Compile Sources folder.

This solution courtesy of atomicbird (thanks!)

Similarly, however, if you find that you cannot load your JS file from the resource bundle (via NSBundle), make sure that you manually add it to the Targets → <your project> → Copy Bundle Resources folder.