How to update code when emulating a Cordoba application on Xcode?

I have a Cordova project that I opened with Xcode and then imitate. Xcode does a git checkout of the project in a new folder and runs the code from there. However, when I run the emulator, it seems to be an open and older version of my project, because it includes a JS debugger that I deleted a long time ago.

When I look at the code in Xcode, it looks correct, but the emulator still runs the old version.

+4
source share
1 answer

With cordova 3.X you should not work with xcode

Even if you are working with xcode, you must run the command cordova prepare iosevery time you change something.

script ( xcode , , + script). copy www

:

PATH=${PATH}:/usr/local/lib/node_modules/cordova/bin/:/usr/local/bin
cordova prepare ios

EDIT: Xcode 7 PATH, cordova prepare ios

EDIT2: Xcode 8 cordova , , node . , PATH.

, nvm node, , , .

, which cordova , , - : /Users/username/.nvm/versions/node/v4.4.7/bin/cordova. script, ios, -

PATH=/Users/username/.nvm/versions/node/v4.4.7/bin/:$PATH && cordova prepare ios

+5

All Articles