[TIMOB-17193] CLI 3.3.0.Beta crashes when no parameter is given to --device-id
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2015-09-04T07:17:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | CLI, iOS |
Labels | n/a |
Reporter | Ricardo Alcocer |
Assignee | Chris Barber |
Created | 2014-06-23T18:39:39.000+0000 |
Updated | 2017-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)
\-\-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.Can't reproduce on Ti CLI 4.1.0-dev.
Closing ticket as the issue cannot be reproduced and due to the above comments.