Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7368] Tooling: titanium.py create does not add platform tiapp.xml tags as expected

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-08-22T23:57:12.000+0000
Affected Version/sRelease 1.8.0.1, Release 1.8.1
Fix Version/sRelease 3.0.0
ComponentsTooling
Labelsn/a
ReporterDustin Hyde
AssigneeIngo Muschenetz
Created2012-01-24T16:48:47.000+0000
Updated2017-03-16T21:39:06.000+0000

Description

When 'titanium.py create' is run from the command line, the created project does not contain platform tag information in tiapp.xml file, as would be expected. Note: When the new project is imported into studio, the tags are added based on the presence of the platform-specific Resources sub-folder (i.e., Project/Resources/android). This seems unexpected, but this is how it works as of now. Steps to Reproduce: 1. Run 'titanium.py create' from the terminal using the following arguments:
dhydeMBPLion:~ dhyde$ /Users/dhyde/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.1.v20120123161633/titanium.py create --platform=iphone --type=project --dir=/Users/dhyde/Downloads --name=TagTest --id=com.appcelerator.tagtest
2. Inspect tiapp.xml in the new project folder. Expected Result: Deployment target tags would be present.
<deployment-targets>
        <target device="mobileweb">true</target>
        <target device="iphone">true</target>
        <target device="ipad">true</target>
        <target device="android">true</target>
        <target device="blackberry">false</target>
</deployment-targets>
Actual Result: No deployment targets exist.

Comments

  1. Chris Barber 2016-08-22

    titanium.py create was replaced by the Titanium CLI's ti create command which does add the platforms as expected. This was fixed in Titanium SDK 3.0.0.
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source