Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12002] CLI: Remove iphone and ipad platform options

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-16T09:24:02.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 25, 2012 Sprint 25 JS
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-12-08T00:39:50.000+0000
Updated2013-01-17T03:46:37.000+0000

Description

Since "iphone", "ipad", and "ios" all do the same thing, it's best to remove "iphone" and "ipad" to remove confusion. Use the device targets in the tiapp.xml or --device-family option to specify "iphone", "ipad", or "universal".

Comments

  1. Chris Barber 2012-12-11

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3563 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3564
  2. Chris Barber 2012-12-11

    Reopening because I found two more spots that I missed.
  3. Chris Barber 2012-12-11

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3573 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3574
  4. Paras Mishra 2013-01-16

    Running "Titanium build -p iphone -F ipad" builds the project. It still accepts platform argument as iphone,ipad for platform options and successfully build the project. As the iphone,ipad options are not removed from platform argument. If we run "Titanium build" it prompts as " Target platform [android,ios,mobileweb]:" If User provide iphone,ipad option to it then also it builds successfully. Verified on : SDK version: 3.1.0.v20130111163212, 3.0.0.GA CLI version : 3.0.22 OS : MAC OSX 10.7.5 XCode : 4.5.1
  5. Chris Barber 2013-01-16

    This is expected behavior. Nowhere does the CLI advertise that "iphone" or "ipad" are valid build targets, but for a period of time we did allow them. This ticket exists because it doesn't make sense to have "iphone", "ipad", and "ios" targets that are all identical. Too confusing. The reason we still allow "iphone" and "ipad" is because there are versions of Titanium Studio that may still be in use that pass in "iphone" or "ipad" instead of "ios". Someday we'll rip out support for "iphone" and "ipad", but it doesn't hurt anything to leave it in.
  6. Paras Mishra 2013-01-17

    Working as expected Verified on : SDK version: 3.1.0.v20130111163212, 3.0.0.GA CLI version : 3.0.22 OS : MAC OSX 10.7.5 XCode : 4.5.1

JSON Source