Project: titanium
Issue TIMOB-17808: CLI: All commands fail when Titanium SDK 3.3.0 or older is the selected SDK
When using Titanium CLI 3.4.0 on Windows or Linux and having a selected SDK or specifying {{\-\-sdk}} of 3.3.0.GA or older will cause all Titanium CLI commands to crash: {code} C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185 throw e; ^ TypeError: Cannot read property 'path' of undefined at removeXcode6 (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\hooks\tisdk3fixes.js:75:54) at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\hooks\tisdk3fixes.js:115:4 at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\lib\hook.js:235:13 at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:551:21 at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:227:13 at iterate (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:134:13) at async.eachSeries (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:150:9) at _asyncMap (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:226:9) at Object.mapSeries (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:216:23) at async.series (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:549:19) --------------------------------------------- at async.setImmediate (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:96:15) at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:696:21 at Array.forEach (native) at _each (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:32:24) at _insert (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:681:11) at q.push (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:708:15) at Object.findExecutable (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\subprocess.js:113:8) at resolveNode (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\lib\titanium.js:97:34) {code} To reproduce, install Titanium CLI 3.4.0 on Windows or Linux, then run {{ti info \-\-sdk 3.3.0.GA}}.
Story points: 3