[TIMOB-11658] iOS: builds fail with fatal error: 'libxml/tree.h' file not found due to space in xcode path
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-05T21:18:23.000+0000 |
Affected Version/s | Release 2.1.3, Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23 |
Components | iOS, Tooling |
Labels | core, qe-ios100112 |
Reporter | Dustin Hyde |
Assignee | Sabil Rahim |
Created | 2012-11-02T20:26:43.000+0000 |
Updated | 2012-12-05T21:18:23.000+0000 |
Description
iOS builds fail with:
[INFO] Minimum iOS version: 4.3 Linked iOS Version 6.0
[INFO] Performing clean build
[ERROR] /Users/dhyde/Desktop/TISTUD-RC/workspace/MyProject/build/iphone/Classes/GDataXMLNode.h:39:9: fatal error: 'libxml/tree.h' file not found
[ERROR] /Users/dhyde/Desktop/TISTUD-RC/workspace/MyProject/build/iphone/Classes/GDataXMLNode.h:39:9: fatal error: 'libxml/tree.h' file not found
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/builder.py", line 1325, in main
execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s" % (log_id,sdk_version,debugstr,kroll_coverage)],False)
File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/builder.py", line 1231, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65
Could be Xcode-related.
Steps to Reproduce:
1. Create new Titanium Project.
2. Run in iOS Simulator.
Actual Result:
fail
Expected Result:
success, app runs in simulator or builds correctly
Attachments
File | Date | Size |
---|---|---|
build.log | 2012-11-02T20:30:13.000+0000 | 1432897 |
This is an Xcode path issue. Printing the path showed studio was installed on the desktop with a space.
I changed the path to applications and it worked. The work-around is to take away the space in the xcode path.
We might want to improve the error message or add support to paths with spaces.
Placing in API as core is booked this sprint.
https://github.com/appcelerator/titanium_mobile/pull/3385 PR pending .
Backport https://github.com/appcelerator/titanium_mobile/pull/3459
Closing as fixed. Tested and Verified fix with: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, build: 3.1.0.v20121204181803 Titanium SDK, build 3.0.0.v20121204181658 iOS simulator 6.0