2008 07 25Where in build phases is that file ?
Moving it from Compile Sources to Copy Bundle Resources will make XCode treat that new file as a pure resource and copy it instead of trying to compile it. Simple, once you know where to look : in Files view, looking at two inspectors on both files won't show a difference, even if those files don't share the same build phase. Which will make you search for … a … looooong time if you seldom use build phases. I guess that's a new chapter in UI : the uninspecting inspector.
Does XCode have a thorough log, showing what it did to compile an app ? (Like a list of compiled files, resources and buid phases they went through)Ah, yes. Thank you !
So … XCode warns about no rule to process file when the .js is in the wrong build phase. It uses CpResource to copy the .js if it's in the right build phase (Copy Bundle Resources).
Yep. Build > Build Results > click on the tiny button with check mark.