[TIMOB-24219] iOS: "--device-family" expects values other than help describes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-19T13:19:13.000+0000 |
Affected Version/s | Release 6.0.1, titanium 5.0.11 |
Fix Version/s | Release 6.0.1 |
Components | CLI |
Labels | qe-6.0.1 |
Reporter | Eric Wieber |
Assignee | Chris Barber |
Created | 2016-12-13T23:11:23.000+0000 |
Updated | 2016-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.
TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8686 TiSDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8687
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.