Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15563] CLI: Target Platform's limitation during project creation is not working

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-09-02T05:49:12.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsCLI
Labelsqe-3.2.0, usability
ReporterOlga Romero
AssigneeChris Barber
Created2013-10-23T00:37:21.000+0000
Updated2017-03-24T17:43:08.000+0000

Description

*not regression* occurs in CLI 3.1.2

To reproduce

1. Create a project with the only one Target Platform (e.g. ios) 2. cd to this project and run command "ti project" - observe the only iOS platform is set to "true" 3. Use ti build command and target android and mobile web platforms

Actual result

Although we created project only for iOS, project will build successfully for different platforms as well, and platform folders will appear in a project's build folder.

Comments

  1. Chris Barber 2016-09-02

    This is by design. When you create a project, it will only copy the default resources for the specified platforms and sets the deployment targets in the tiapp.xml. Once the project has been created, the deployment targets are only used by Studio so that it can call the project command to copy the default resources for the new deployment targets. There is no enforcing of the deployment targets at build time. It's not necessary and enabling such a feature would hinder the developer experience.
  2. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source