[TIMOB-9171] iOS: Window: Cannot compile an application to device when Window is not created
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-29T19:50:40.000+0000 |
Affected Version/s | Release 2.0.2 |
Fix Version/s | Release 2.0.2, Release 2.1.0, Sprint 2012-10 Core |
Components | iOS |
Labels | core, qe-ios050912, regression |
Reporter | Natalie Huynh |
Assignee | Stephen Tramer |
Created | 2012-05-18T10:05:46.000+0000 |
Updated | 2012-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();
Note to fixer: this is happening because TiUIWindow is always compiled, and has a dependency on TiUIWindowProxy, which is conditionally compiled.
PR #2226 fixes this
Fixed on 2_0_X by PR 2227
Tested with 2.0.2.v20120518140206 on iPhone 4s 5.1
Reopening to adjust sprint