Is it possible to put all my JavaScript into an external file, rather than have multiple copies of the code in each HTML file?
I have tried creating a main.js file in the "Resources" group, and then added
- Code: Select all
<script type="text/javascript" src="main.js"></script>
into the head of my HTML files, just as it has been done with NKit.js, but it doesn't work. It fails to see the Javascript, and when running the App in the simulator, I get the following warning in the Build Results window:
- Code: Select all
warning: no rule to process file '$(PROJECT_DIR)/main.js' of type sourcecode.javascript for architecture i386
Am I missing something?
Cheers
James