[TIMOB-11489] CLI returning values other than "ios" for "platform" compile variable for ios builds through Studio
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-18T02:00:35.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 JS, 2012 Sprint 21 |
Components | iOS, Tooling |
Labels | cli, qe-port, triage |
Reporter | Tony Lukasavage |
Assignee | Chris Barber |
Created | 2012-10-15T17:37:35.000+0000 |
Updated | 2012-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.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3276 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3277
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