[TIMOB-16520] CLI: error when titanium build compiles a project, passing empty argument
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-23T20:56:33.000+0000 |
Affected Version/s | Release 3.2.2 |
Fix Version/s | 2014 Sprint 10, 2014 Sprint 10 Tooling, Release 3.3.0 |
Components | n/a |
Labels | cli, module_cli, qe-3.2.2, qe-testadded, regression |
Reporter | Olga Romero |
Assignee | Chris Barber |
Created | 2014-02-28T21:26:39.000+0000 |
Updated | 2014-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 promptedActual 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
Pull request: https://github.com/appcelerator/titanium_mobile/pull/5687
Works as expected.
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.