Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9623] Tooling: add post-project-creation ipad support to projects

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-19T12:41:58.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-13 Core
ComponentsTooling
Labelscore, qe-ios060112, qe-port
ReporterDustin Hyde
AssigneeNeeraj Gupta
Created2012-06-18T16:24:27.000+0000
Updated2012-08-29T06:10:42.000+0000

Description

If a project is created without iOS as a deployment target, then iPad (without iPhone) is added as a target via the TiApp Overview, the project will not build to iPad. Console Log:
[INFO] One moment, building ...
[INFO] Titanium SDK version: 2.1.0 (06/18/12 14:03 2e4dfb6)
[INFO] iPhone Device family: ipad
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: ipad
[INFO] Performing full rebuild. This will take a little bit. Hold tight...
[ERROR] Error: Traceback (most recent call last):
  File "/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120618140357/iphone/builder.py", line 1061, in main
    applogo = ti.generate_infoplist(infoplist,appid,devicefamily,project_dir,iphone_version)
  File "/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120618140357/iphone/../tiapp.py", line 503, in generate_infoplist
    tempiconslist = sorted(os.listdir(iconsdir1))
OSError: [Errno 2] No such file or directory: '/Users/dhyde/Desktop/Titanium_Studio_Workspace/MyProject/Resources/ipho
Studio Debug Log:
!ENTRY com.appcelerator.titanium.core 1 0 2012-06-18 16:07:33.985
!MESSAGE (Build 2.1.0.201206172244) [INFO] com.appcelerator.titanium.core/debug Updating project MyProject deploy-targets to include [mobileweb, ipad]

!ENTRY com.aptana.core 1 0 2012-06-18 16:07:33.988
!MESSAGE (Build 2.1.0.201206172244) [INFO] com.aptana.core/debug/shell Running process:
Process: "/usr/bin/python" "/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120618140357/project.py" "MyProject" "com.appcelerator.myproject" "/Users/dhyde/Desktop/Titanium_Studio_Workspace" "mobileweb" "ipad" "-u"
Working directory: null
Environment: {DEVELOPER_DIR=/Developer}
Steps to Reproduce: 1. Create a Titanium Mobile project with only MobileWeb support. 2. Select iPad in the TiApp Editor Overview and save tiapp.xml. 3. Deploy to iPad Simulator. Result: iPad project fails to build. Expected Result: iPad project should build.

Comments

  1. Satyam Sekhri 2012-08-29

    Verified on: Titanium Studio: 2.1.2.201208281351 Titanium SDK: 2.2.0.v20120828153312

JSON Source