Project: titanium
Issue TIMOB-19153: Windows: CLI errors with Error: Callback was already called when building to emulator with production deploytype
h5.Description When building for an emulator with a deploytype of production the build will error out with the below {code} C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:1 95 throw e; ^ Error: Callback was already called. at WindowsBuilder. (C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_ modules\async\lib\async.js:22:31) at CLI._fireHookCallback (C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.j s:269:12) at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.js:248:10 at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:2 32:13 at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:1 42:25 at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:2 29:17 at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:5 56:34 at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.js:239:9 at EventEmitter. (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:244:9) --------------------------------------------- at installApp (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:218:8) at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:286:7 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:551:21 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:227:13 at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:134:13) at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:145:25 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:229:17 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:556:34 --------------------------------------------- at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:265:8 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:551:21 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:227:13 at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:134:13) at async.eachSeries (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:150:9) at _asyncMap (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:226:9) at Object.mapSeries (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:216:23) at async.series (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:549:19) {code} h5.Steps to reproduce 1. Build a project using {{appc run -p windows -T wp-emulator -D production}} h5.Actual result The CLI will error with the above h5.Expected result The CLI should not error
Story points: 5