IOS remote debug 500


I am trying to implement a apache cordova mobile app via Visual Studio 2015. When I try to remotebuild, I am getting this error while debugging:

http 500 ReferenceError: Q is not defined

In the javascript output it says: referenced file ‘cordova.js’ not found

Here is MAC OS X logs:
Remote build server listening on [https] port 3000
Please view/edit server configuration at /Users/kizildagcenk/.taco_home/RemoteBuild.config. You many need to run ‘remotebuild saveconfig’ to generate it. You will have to restart the server if you update the server configurations.
GET /cordova/build/704 404 409.541 ms - 24
New build request submitted:

Downloading: taco-remote-multiplexer
npm WARN enoent ENOENT: no such file or directory, open '/Users/kizildagcenk/.taco_home/node_modules/taco-remote-multiplexer/latest/package.json'
npm WARN latest No description
npm WARN latest No repository field.
npm WARN latest No README data
npm WARN latest No license field.
taco-remote-multiplexer downloaded and installed.
Error: Cannot find module '/Users/kizildagcenk/.taco_home/node_modules/taco-remote-multiplexer/latest/node_modules/taco-remote-multiplexer'
Build will be executed under: /Users/kizildagcenk/.taco_home/remote-builds/taco-remote/builds/345
Saving build request payload to : /Users/kizildagcenk/.taco_home/remote-builds/taco-remote/builds/345
Saved uploaded build to /Users/kizildagcenk/.taco_home/remote-builds/taco-remote/builds/345/upload_345.tgz
POST /cordova/build/tasks?command=build&vcordova=5.1.1&cfg=debug&options=--device&loglevel=warn 202 13931.991 ms - 690
GET /cordova/build/tasks/345 200 5.499 ms - 690
Extracted app contents from uploaded build request to /Users/kizildagcenk/.taco_home/remote-builds/taco-remote/builds/345/cordovaApp. Requesting build.
Taking 345 as current build
GET /cordova/build/tasks/345 200 13.170 ms - 53408
GET /cordova/build/tasks/345 200 105.311 ms - 53439
GET /cordova/build/tasks/345 200 6.355 ms - 53431
GET /cordova/build/tasks/345 200 5.382 ms - 53431
GET /cordova/build/tasks/345 200 3.983 ms - 53431
GET /cordova/build/tasks/345 200 6.183 ms - 53431
GET /cordova/build/tasks/345 200 3.950 ms - 53431
Done with current build. Checking for next build in queue.
GET /cordova/build/tasks/345 200 5.119 ms - 53418
GET /cordova/build/tasks/345/log 200 10.676 ms - -
GET /cordova/files/345/cordovaApp/plugins/ios.json 200 8.863 ms - 3460
GET /cordova/build/345/download 200 540.657 ms - -
GET /cordova/build/345/deploy 200 5055.733 ms - 53447
GET /cordova/build/345/run 200 5765.143 ms - 53447
GET /cordova/build/345/debug 500 3.905 ms - 1335
ReferenceError: Q is not defined
  at IOSAgent.debugBuild (/Users/kizildagcenk/.taco_home/node_modules/taco-remote-lib/1.2.1/node_modules/taco-remote-lib/ios/ios.js:207:24)
  at Object.debugBuild (/Users/kizildagcenk/.taco_home/node_modules/taco-remote-lib/1.2.1/node_modules/taco-remote-lib/tacoRemoteLib.js:130:22)
  at BuildManager.debugBuild (/usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/lib/buildManager.js:205:26)
  at /usr/local/lib/node_modules/remotebuild/node_modules/taco-remote/lib/server.js:148:18
  at Layer.handle [as handle_request] (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/layer.js:82:5)
  at next (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/route.js:110:13)
  at Route.dispatch (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/route.js:91:3)
  at Layer.handle [as handle_request] (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/layer.js:82:5)
  at /usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/index.js:267:22
  at param (/usr/local/lib/node_modules/remotebuild/node_modules/express/lib/router/index.js:340:14)

How can I fix this?

Someone has done a terrible mistake in TACO library:

Check last commit… just remove .taco_folder in your user folder on MAC and download it again.

Hello @montella1507,

Thanks for your reply. Is this enough to delete folder as follows:

rm -rf taco_folder

@montella1507 thank you, it is resolved.