Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16522] CLI: error building targeting dist-adhoc when provisioning profile uuid (-P) value is not passed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-07-22T18:17:06.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sRelease 3.3.1, Release 3.4.0
ComponentsCLI, iOS
Labelscli, module_cli, qe-3.2.2, qe-closed-3.4.0, qe-manualtest, qe-testadded, regression
ReporterOlga Romero
AssigneeChris Barber
Created2014-02-28T23:45:11.000+0000
Updated2014-08-19T08:28:38.000+0000

Description

*regression* no issue in 3.2.1.GA

To reproduce

1. Run ti build -p ios -T dist-adhoc -F universal -P 2. Enter prompted values

Actual result

Select a certificate by number or name: 1
 

/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.pp-uuid.validate (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.v20140221161255/iphone/cli/commands/_build.js:691:51)
    at CLI.<anonymous> (/usr/local/lib/node_modules/titanium/lib/cli.js:621: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:583:45)
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21

Expected result

Which distribution certificate would you like to use?
/Users/oromero/Library/Keychains/login.keychain
   1)  Michael Asher (WY35J6ST95)  (expires Nov  6, 2014  1:23:50 pm)
Select a certificate by number or name: 1
 
[ERROR] Invalid provisioning profile UUID "true"

Which provisioning profile would you like to use?
Available Distribution UUIDs:
   1)  95B8E578-1273-4D3A-93B4-0607CFE8CFEC Any App App Store Distribution: *  (expires Nov  5, 2014  1:44:47 pm)
Select a provisioning profile UUID by number or name: 1
 
Where would you like the output IPA file saved? [/Users/oromero/Documents/Appcelerator_Studio_Workspace22/ola.q/dist]: 
 
[DEBUG] No project level plugins to load
[DEBUG

Comments

  1. Ingo Muschenetz 2014-06-23

    Believe this should be a CLI issue, no?
  2. Chris Barber 2014-07-22

    Master: https://github.com/appcelerator/titanium_mobile/pull/5924 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5925
  3. Tim Poulsen 2014-07-22

    Build command as listed in description works fine; app is built and signed as expected.
  4. Priya Agarwal 2014-08-19

    Verified with environment: Appcelerator Studio:3.4.0.201408180158 Sdk:3.4.0.v20140815142514 alloy:1.5.0-dev titanium:3.4.0-dev titanium-code-processor:1.1.1 acs:1.0.16 npm:1.3.2 OS:Maverick(10.9.4) xcode: Xcode6Beta5 Device:iPhone5c(v7.1.1) Working as expected. Build command as listed in description works fine. All prompted values are entered and app builds successfully.(ipa gets generated). No error logs are shown. Hence closing the issue.

JSON Source