[[NSBundle mainBundle] pathForResource:@"script.js" ofType:nil];
1. In Xcode’s project navigator (left column) klick on the blue project icon.
2. Select the “Build Phases” tab in the main window
3. Open the “Compile Sources” section
5. Open the “Copy Bundle Resources” section
warning: no rule to process file '*FILEPATH*' of type
So the problem is easier to spot now. You still have to fix it manually as I described above.