changes in javascript code don't reflect on iOS simulator until i do "project clean"

Hey , as the title says…
i have to do a PROJECT CLEAN every time i make a change in the js source files otherwise my changes just don’t reflect on the iOS simulator.
is any one else aware of this problem.
it is very frustrating as it takes almost 6-7 minutes for the project to run again after cleaning.

Hi

It’s an issue of Xcode, but if you upgrade your Xcode to 5.1, it will act better on that, though sometime it still happens, but really much rare than the previous versions.

Huabin

Hi,

I had the same problem some time ago, and I solved adding a “Run Script Build Phase” to the Build Phase before the “Copy Bundle Resources” that mark all .JS files under the Resources folder as modified using the touch command.

To do that go to your project Build Phases and add a new “Run Script Build Phase”.

Then move it above the Copy Bundle Resources

And finally write the following script:
touch -cm ${SRCROOT}/…/Resources/res
touch -cm ${SRCROOT}/…/Resources/src
touch -cm ${SRCROOT}/…/Resources/main.js

This script mark as modified all .js files and also the resources, forcing to copy the resources again, this is much faster than making a Clean every time that you want to build the game.

Hope this helps you.

Cheers

Great trick ! Thanks @mmartis