[TIMOB-24228] iOS: Remove "ipad" as --platform option
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 6.0.1 |
Fix Version/s | n/a |
Components | iOS, Tooling |
Labels | cb-tooling, qe-6.0.1 |
Reporter | Eric Wieber |
Assignee | Chris Barber |
Created | 2016-12-14T20:16:17.000+0000 |
Updated | 2020-01-30T18:55:02.000+0000 |
Description
The
--platform
option accepts iphone
and ipad
as values, which is unexpected. Using iphone
only sets the platform to ios
. However, using ipad
sets the platform to ios
_and_ sets the device-family
to ipad
.
*Steps to reproduce issue*
1. Create a new project
2. CD to the project folder
3. Run appc run -p iphone
4. Run appc run -p ipad
*Expected Results*
The iphone
and ipad
values are not accepted or behave the same
*Actual Results*
Both values are accepted and ipad
will set the device-family
whereas iphone
will not.
*Notes*
The lines containing the information to check is in the first several [INFO]
logs of the build output:
[INFO] Deploy type: development
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 10.2
[INFO] Building for iOS Simulator: iPad Pro (12.9 inch)
[INFO] Building for device family: ipad
[INFO] Minimum iOS version: 8.0
This is by design. This behavior has been there ever since the first version of Titanium that supports iPad. We can remove this coupling in the next major release since the platform shouldn't be tightly coupled to the device family.