Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16520] CLI: error when titanium build compiles a project, passing empty argument

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-23T20:56:33.000+0000
Affected Version/sRelease 3.2.2
Fix Version/s2014 Sprint 10, 2014 Sprint 10 Tooling, Release 3.3.0
Componentsn/a
Labelscli, module_cli, qe-3.2.2, qe-testadded, regression
ReporterOlga Romero
AssigneeChris Barber
Created2014-02-28T21:26:39.000+0000
Updated2014-05-23T20:56:40.000+0000

Description

*regression* no issue in 3.2.1.GA

To reproduce

1. Run ti build -p ios -T device -K or ti build -p ios -T dist-adhoc -K 2. Enter provisioning profile, which is prompted

Actual result

Select a provisioning profile UUID by number or name: 1
 

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
        throw e;
              ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at exports.join (path.js:358:36)
    at exports.resolvePath (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.v20140221161255/node_modules/node-appc/lib/fs.js:52:20)
    at iOSBuilder.validate (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.v20140221161255/iphone/cli/commands/_build.js:966:42)
    at exports.validatePlatformOptions (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.v20140221161255/node_modules/titanium-sdk/lib/titanium.js:615:69)
    at /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.v20140221161255/cli/commands/build.js:192:19
    at callCommandValidate (/usr/local/lib/node_modules/titanium/lib/cli.js:848:7)
    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

Expected result

Select a provisioning profile UUID by number or name: 1
 
[ERROR] Unable to find keychain "/Users/oromero/Documents/Appcelerator_Studio_Workspace22/ola.q/true"

Available keychains:
    /Users/oromero/Library/Keychains/login.keychain
    /Library/Keychains/System.keychain
and project builds successfully *NOTE* Commands, returning same error: ti build -d

Comments

  1. Chris Barber 2014-05-15

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/5687
  2. Tim Poulsen 2014-05-16

    Works as expected.
  3. Samuel Dowse 2014-05-19

    Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201405161313 Titanium SDK, build: 3.3.0.v20140516180912 Titanium CLI, build: 3.3.0-dev Alloy: 1.4.0-alpha Passing in empty argument does not result in an error. Used test code snippet provided in description, project built successfully. Closing.

JSON Source