Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18067

CLI: Running "ti build -p ios -T dist-adhoc -F universal -P --no-colors" command throws longjohn error.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 3.4.1
    • Fix Version/s: Release 3.5.0
    • Component/s: CLI
    • Environment:

      Tested on:
      1. Mac OSX Yosemite 10.10
      2. Appcelerator Studio, build: 3.4.1.201410281743
      3. Titanium SDK, build: 3.4.1.GA
      4. Titanium CLI, build: 3.4.1
      5. Alloy: 1.5.1
      6. Xcode 6.1 and iOS SDK 8.1

    • Sprint:
      2014 Sprint 24 Tooling

      Description

      Description:
      CLI throws longjohn error while building an iOS application with colors flag set to false and when input value is given for provisioning profile prompt.

      This is not a regression. Reproducible with earlier releases.

      STEPS TO REPRODUCE:-
      1. Create titanium iOS project and cd to the project.
      2. Run "ti build -p ios -T dist-adhoc -F universal -P --no-colors" command.
      OR
      2. Run the below commands
      "ti config cli.colors false"
      "ti build -p ios -T dist-adhoc -F universal -P"

      EXPECTED RESULT
      2. The CLI should accept all the valid input values from the user and build the project successfully.

      ACTUAL RESULT
      2. The CLI throws the below long john error when input value '1' is given for the distribution certificate prompt.

       
      KAGRAWAL-MBP:iOSTestProject kagrawal$ ti build -p ios -T dist-adhoc -F universal -P --no-colors
      Titanium Command-Line Interface, CLI version 3.4.1, Titanium SDK version 3.4.1.GA
      Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      Which distribution certificate would you like to use?
      /Users/kagrawal/Library/Keychains/login.keychain
         1)  Michael Asher (WY35J6ST95)  (expires Mar 22, 2015  5:04:10 am)
      Select a certificate by number or name: 1
       
      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
              throw e;
                    ^
      TypeError: Object true has no method 'toLowerCase'
          at callback.options.pp-uuid.validate (/Users/kagrawal/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA/iphone/cli/commands/_build.js:927:50)
          at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:622:14)
          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 /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:145:25
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:556:34
          at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:584:45)
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21
      KAGRAWAL-MBP:iOSTestProject kagrawal$ 
      
      

      Note: "ti build -p ios -T dist-adhoc -F universal --pp-uuid --no-colors" works fine.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              kagrawal Khushbu Agrawal
              Reviewer:
              Chris Barber
              Tester:
              Visalakshi Chidambaram
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19390
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration