Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12282] CLI: Setup wizard throws an error while input is provided to iOS distribution certificate prompt.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-08-13T18:22:17.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.1, Release 3.1.0
Fix Version/s2013 Sprint 16, 2013 Sprint 16 Core, Release 3.2.0
ComponentsCLI
Labelsjs, qe-cli, qe-manualtest
ReporterParas Mishra
AssigneeChris Barber
Created2013-01-15T01:20:09.000+0000
Updated2014-08-13T18:22:17.000+0000

Description

Setup wizard prompts name of the iOS distribution certificate , provided the correct name , error comes stating "TypeError: Object true has no method 'trim' CLI: Setup wizard throws an error while input is provided to iOS distribution certificate prompt. Steps to reproduce: 1. run "Titanium setup -a" 2. Process till the prompt for iOS distribution certificate comes 3. Provide the valid distribution certificate name. Actual result : An error is shown as follows /usr/local/lib/node_modules/titanium/node_modules/longjohn/index.js:111 throw e; ^ TypeError: Object true has no method 'trim' at exports.run (/usr/local/lib/node_modules/titanium/lib/commands/setup.js:310:42) at Array.forEach (native) at exports.run (/usr/local/lib/node_modules/titanium/lib/commands/setup.js:309:25) at prompt.get (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:317:32) at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25) at assembler (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:314:9) at prompt.get (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:323:32) at prompt.getInput (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:598:5) at Interface.onLine (/usr/local/lib/node_modules/titanium/node_modules/prompt/node_modules/read/lib/read.js:110:5) Expected Result : Setup wizard should successfully configure the iOS distribution certificate

Attachments

FileDateSize
Screen Shot 2013-01-14 at 12.45.32 PM.png2013-01-15T01:20:09.000+000059315

Comments

  1. Dave Townsend 2013-04-08

    Until there is a fix, can the "Distribution Certificate Section" setting be added manually to the config.json file? If so, what section?
  2. Chris Barber 2013-07-26

    https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
  3. Chris Barber 2013-07-31

    To test, run "titanium setup ios" and it will correctly list and allow you to select the cert.
  4. Dhirendra Jha 2013-11-15

    Environment - Appc Studio - 3.2.0.201311140721 SDK - 3.2.0.v20131114184328 acs -1.0.7 alloy - 1.3.0 titanium - 3.2.0 titanium-code-processor - 1.1.0 Xcode - 5.0.2 OS - Mac OS X Mavericks (10.9) Result - Now its working fine. No error observed. Hence closing this issue.
  5. Olga Romero 2014-08-13

    reopened to add labels

JSON Source