I just noticed that i am getting warnings about .js files
warning: no rule to process file '$(PROJECT_DIR)/CanvasGraph.js' of type sourcecode.javascript for architecture i386
Maybe I need set some rule in Xcode for js files??
If yes, what should i do?
It means XCODE doesn't know what to do with a .js file - compile it? link it? include it in the bundle unchanged? You want to include it in the bundle unchanged.
Look inside "Targets" in the the left pane, expand your target, and drag your file into "copy bundle resources." It should be added to the bundle the next time you build.
Maybe someone else knows how to add .js files to the list of files that get copied automatically?
It means XCODE doesn't know what to do with a .js file - compile it? link it? include it in the bundle unchanged? You want to include it in the bundle unchanged.
Look inside "Targets" in the the left pane, expand your target, and drag your file into "copy bundle resources." It should be added to the bundle the next time you build.
Maybe someone else knows how to add .js files to the list of files that get copied automatically?
Hello I have the same problem and this doesn't work. Same error though.
Hello I have the same problem and this doesn't work. Same error though.
Go the your build folder, right-click the built app, and choose "view contents" - you'll be able to tell if your .js file is being included in the bundle or not.
If the .js file is not in the bundle, it's still a build/target problem.
If the .js file is in the bundle, then either you're not including it properly in the html (notices it's not in a subfolder) or there's an error in your javascript - try dropping your html into safari and checking for errors.
PS - are you loading this javascript into a webview, or into mobile safari (openURL?)