Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24219] iOS: "--device-family" expects values other than help describes

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-12-19T13:19:13.000+0000
Affected Version/sRelease 6.0.1, titanium 5.0.11
Fix Version/sRelease 6.0.1
ComponentsCLI
Labelsqe-6.0.1
ReporterEric Wieber
AssigneeChris Barber
Created2016-12-13T23:11:23.000+0000
Updated2016-12-19T13:19:16.000+0000

Description

When trying to specify a device family, the accepted values are different than expected and from what help indicates. Using the suggested values in help results in this error: [ERROR] Invalid device family "ipad" *Steps to reproduce issue* 1. Create a new project 2. CD to the project folder 3. Run the project with ti build --device-family ipad or appc run --device-family ipad *Expected Results* The project is built with the iPad device family *Actual Results* The ipad device family is not accepted and the user is prompted for a valid device-family *Notes* The error occurs with the values ipad, iphone, and universal. The accepted values are iPad, iPhone, and \_\_universal\_\_ Help indicates that the values should be lowercase and not use underscores.

Comments

  1. Chris Barber 2016-12-14

    TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8686 TiSDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8687
  2. Eric Wieber 2016-12-15

    Verified fixed, using: MacOS 10.12 (16A323) Studio 4.8.0.201611121409 Ti SDK 6.0.1.v20161214184817 Appc NPM 4.2.9-1 Appc CLI 6.1.0 Alloy 1.9.5 Xcode 8.2 (8C38) All values for --device-family listed in the help work as expected from the CLI. Studio is also now able to build for ipad/iphone devices and sims. Tested by building projects using the --device-family option.

JSON Source