Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9171] iOS: Window: Cannot compile an application to device when Window is not created

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-29T19:50:40.000+0000
Affected Version/sRelease 2.0.2
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-10 Core
ComponentsiOS
Labelscore, qe-ios050912, regression
ReporterNatalie Huynh
AssigneeStephen Tramer
Created2012-05-18T10:05:46.000+0000
Updated2012-05-29T19:50:40.000+0000

Description

Regression: This does not occur in 2.0.1GA2 Step to Reproduce: 1. Create a new application 2. Add in the code below:
alert("compile without UI");
3. Compile to iOS device Actual: [INFO] Performing clean build [ERROR] /Users/nhuynh/Documents/Titanium Studio Workspace/Failure/build/iphone/Classes/TiUIWindow.m:37:7: error: use of undeclared identifier 'TiUIWindowProxy'; did you mean 'TiUIWindow'? [3] [ERROR] /Users/nhuynh/Documents/Titanium Studio Workspace/Failure/build/iphone/Classes/TiUIWindow.m:37:23: error: expected expression [1] [ERROR] /Users/nhuynh/Documents/Titanium Studio Workspace/Failure/build/iphone/Classes/TiUIWindow.m:37:30: error: expected ']' [1] [ERROR] /Users/nhuynh/Documents/Titanium Studio Workspace/Failure/build/iphone/Classes/TiUIWindow.m:37:53: error: missing '[' at start of message send expression [3] [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.v20120517153200/iphone/builder.py", line 1465, in main execute_xcode("iphoneos%s" % iphone_version,args,False) File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.v20120517153200/iphone/builder.py", line 1224, in execute_xcode output = run.run(args,False,False,o) File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.v20120517153200/iphone/run.py", line 41, in run sys.exit(rc) SystemExit: 65 Expected: Should compile with no error. Worked in 2.0.1GA2 Workaround: Add this code to it: win = Ti.UI.createWindow();

Comments

  1. Blain Hamon 2012-05-18

    Note to fixer: this is happening because TiUIWindow is always compiled, and has a dependency on TiUIWindowProxy, which is conditionally compiled.
  2. Vishal Duggal 2012-05-18

    PR #2226 fixes this
  3. Vishal Duggal 2012-05-18

    Fixed on 2_0_X by PR 2227
  4. Natalie Huynh 2012-05-18

    Tested with 2.0.2.v20120518140206 on iPhone 4s 5.1
  5. Stephen Tramer 2012-05-18

    Reopening to adjust sprint

JSON Source