Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24228] iOS: Remove "ipad" as --platform option

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.0.1
Fix Version/sn/a
ComponentsiOS, Tooling
Labelscb-tooling, qe-6.0.1
ReporterEric Wieber
AssigneeChris Barber
Created2016-12-14T20:16:17.000+0000
Updated2020-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

Comments

  1. Chris Barber 2016-12-14

    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.

JSON Source