Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15608] CLI: Passing empty values in to iOS build options returns an error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-15T07:47:11.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 23, 2013 Sprint 23 Core, Release 3.2.0
ComponentsCLI, iOS
Labelsqe-3.2.0, qe-cli, qe-closed-3.2.0, qe-manualtest
ReporterOlga Romero
AssigneeChris Barber
Created2013-10-29T18:29:21.000+0000
Updated2014-08-15T07:47:11.000+0000

Description

When building for iOS device and not using the provisioning profile uuid and the iOS Developer Certificate (e.g. ti build -p iOS -T device), the error is
[ERROR] Missing required option "--developer-name"

[ERROR] Missing required option "--pp-uuid"
Passing empty values (ti build -p ios -T device --developer-name --pp-uuid) results in a different error. See the attached log.

Expected result

Same error message?

Attachments

FileDateSize
log.txt2013-11-06T00:04:27.000+00003378

Comments

  1. Chris Barber 2013-10-29

    Pull request: https://github.com/appcelerator/titanium/pull/64
  2. Chris Barber 2013-10-29

    To test, run a command that has a required option with prompting disabled:
       ti build -p ios -T device --no-prompt
       
  3. Olga Romero 2013-11-06

    [~cbarber]
       cli.prompt                 = true
       
        ti build -p ios -T device --no-prompt
       
       
       [ERROR] Missing required option: --developer-name <name>
       
       [ERROR] Missing required option: --pp-uuid <uuid>
       
       For help, run: titanium help build
       
       
        ti build -p ios -T device --developer-name --pp-uuid
       
       /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
               throw e;
                     ^
       TypeError: Object true has no method 'toLowerCase'
           at callback.options.developer-name.validate (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/iphone/cli/commands/_build.js:417:43)
           at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:608:14)
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:224:13
           at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:131:13)
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:553:34
           at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:636:9)
           at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21
       ---------------------------------------------
           at run (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/node-appc/lib/subprocess.js:57:8)
           at /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/iphone/cli/lib/detect.js:369:9
           at /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/async/lib/async.js:508:21
           at /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/async/lib/async.js:224:13
           at /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/async/lib/async.js:108:13
           at Array.forEach (native)
           at _each (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/async/lib/async.js:32:24)
           at async.each (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131105094044/node_modules/async/lib/async.js:107:9) 
       
       
  4. Chris Barber 2013-11-06

    Pull request: https://github.com/appcelerator/titanium/pull/70
  5. Olga Romero 2013-11-07

    Tested and verified fixed with: CLI 3.2.0 git://github.com/appcelerator/titanium Titanium SDK, build: 3.2.0.v20131107143248

JSON Source