Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17193] CLI 3.3.0.Beta crashes when no parameter is given to --device-id

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-09-04T07:17:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI, iOS
Labelsn/a
ReporterRicardo Alcocer
AssigneeChris Barber
Created2014-06-23T18:39:39.000+0000
Updated2017-03-21T22:09:58.000+0000

Description

Running: ti build -p android --device-id Gives me this error /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ TypeError: Cannot call method 'indexOf' of undefined at /usr/local/lib/node_modules/tn/lib/utils.js:11:13 at Array.forEach (native) at _.each._.forEach (/usr/local/lib/node_modules/tn/node_modules/underscore/underscore.js:79:11) at Object.join (/usr/local/lib/node_modules/tn/lib/utils.js:8:5) at Object.cook (/usr/local/lib/node_modules/tn/lib/cook.js:57:69) at /usr/local/lib/node_modules/tn/hooks/tn.js:16:28 at /usr/local/lib/node_modules/titanium/lib/hook.js:235:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13 at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13) --------------------------------------------- at run (/Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/node-appc/lib/subprocess.js:59:8) at /Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/iphone/cli/lib/detect.js:415:9 at /Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/async/lib/async.js:511:21 at /Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/async/lib/async.js:227:13 at /Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/async/lib/async.js:111:13 at Array.forEach (native) at _each (/Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/async/lib/async.js:32:24) at async.each (/Users/ralcocer/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.Beta/node_modules/async/lib/async.js:110:9)

Comments

  1. Chris Barber 2014-06-23

    \-\-device-id should only be specified with \-\-target device. Because you have not set \-\-target device, you have uncovered an edge case and we should fix this.
  2. Feon Sua Xin Miao 2015-07-13

    Can't reproduce on Ti CLI 4.1.0-dev.
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source