Go to Targets, click the arrow, and drag the unprocessed file from the “compile sources” folder to the “Copy Bundle Resources”
then do a “clean all targets” from the main menu and try to build again.
Since the Target node is gone in the project tree in XCode 4, you have to do the following
1. click on the project node (the blue one with the Xcode icon)
2. click on the tab labeled ‘Build Phases’
3. open the panel labeled ‘Copy Bundle Resources’
4. click the ‘+’ button at the lower left hand corner of the panel
5. add the .js file