------------------NOTICE---------------- Sorry guys, made a stupid mistake, I had found this fix already: https://devforums.apple.com/message/32282
Which works, but didn't realise that the target location had changed in the newer versions of Xcode, so instead clicked on the project file at the top of the list on the left, and found my way to Copy Bundle Resources that way. Not sure why everything but the js shows up there by default, but dragging the files there from the list on the left fixed my problem!
I'm programming an app for ios in html in a uiwebview (a book app) and using jquery and touchwipe to use swipes to move back/forwards through pages.
My code works when I source the javascript like this in the html:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://www.netcu.de/templates/netcu/js/jquery.touchwipe.min.js"></script>
but doesn't work when I try to store the js locally, like this:
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery.touchwipe.min.js"></script>
The .js files are of course in the xcode project, next to the html files (which I suppose doesn't matter as everything is flattened when it's built)
Can anyone point me in the right direction? I'm using Xcode 4.2 on Mac OS 10.6.8
Answered fully at the top of the Question