Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16652] CLI: build to all iOS devices feature throws an error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-04-21T06:50:28.000+0000
Affected Version/sRelease 3.2.1
Fix Version/s2014 Sprint 07, 2014 Sprint 07 Tooling, Release 3.2.3, Release 3.3.0
ComponentsCLI, iOS
Labelsqe-3.2.2, qe-closed-3.2.3, qe-closed-3.3.0, qe-testadded
ReporterSamuel Dowse
AssigneeChris Barber
Created2014-03-20T19:13:11.000+0000
Updated2014-07-22T07:33:39.000+0000

Description

Description

Using the CLI to build to multiple devices using the command "ti build -p ios -C all -T device" throws an error and fails the build.

Steps To Reproduce

1. Create a classic project 2. Connect multiple iOS devices 3. Run "ti build -p ios -C all -T device"

Expected Outcome

App should be installed on all devices

Actual Outcome

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
        throw e;
              ^
TypeError: Cannot read property 'cyan' of undefined
    at iOSBuilder.validate (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140317110130/iphone/cli/commands/_build.js:880:139)
    at exports.validatePlatformOptions (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140317110130/node_modules/titanium-sdk/lib/titanium.js:616:69)
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140317110130/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
    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

Comments

  1. Chris Barber 2014-03-27

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5541
  2. Deepti Pandey 2014-04-21

    Verified FIXED using : OSX: 10.9.2 Xcode:5.1.1 acs@1.0.14 alloy@1.3.1 npm@1.3.2 titanium@3.2.3-beta2 titanium-code-processor@1.1.1-beta1 MobileSDK :3.2.3.v20140418101718 ,3.3.0.v20140418162516 Appcelerator Studio, build: 3.2.3.201404162038 Devices : iPhone 5s (7.1) , iPod toch (7.1) I am successfully able to deploy an app using CLI on multiple devices at a same time. Hence closing it as FIXED.
  3. Deepti Pandey 2014-04-21

    Reopening to edit device details .
  4. Deepti Pandey 2014-04-21

    Closing as FIXED .

JSON Source