Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11489] CLI returning values other than "ios" for "platform" compile variable for ios builds through Studio

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-18T02:00:35.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 21 JS, 2012 Sprint 21
ComponentsiOS, Tooling
Labelscli, qe-port, triage
ReporterTony Lukasavage
AssigneeChris Barber
Created2012-10-15T17:37:35.000+0000
Updated2012-12-18T23:40:17.000+0000

Description

When building apps from the command line using the new CLI, this will always return "ios" as the compile variable "platform" that is used in hooks and plugins:
titanium build --platform ios
When building through TiStudio, though, the value is returned as "iphone". This throws off most of Alloy's platform specific checks, which to this point relied on the old build scripts which consistently returned "ios" for this variable. The expectation is that "platform" should always return "ios" for ios builds, and it should use the other fields like devicefamily or simtype to give more device-specific information.

Comments

  1. Chris Barber 2012-10-18

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3276 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3277
  2. Tamila Smolich 2012-12-18

    Closing as fixed. Tested and verified on: Titanium Studio, build: 3.0.0.201212131639 Titanium SDK, build: 3.0.0.v20121212184921 Titanium CLI: 3.0.21

JSON Source