Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11658] iOS: builds fail with fatal error: 'libxml/tree.h' file not found due to space in xcode path

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-12-05T21:18:23.000+0000
Affected Version/sRelease 2.1.3, Release 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23
ComponentsiOS, Tooling
Labelscore, qe-ios100112
ReporterDustin Hyde
AssigneeSabil Rahim
Created2012-11-02T20:26:43.000+0000
Updated2012-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

FileDateSize
build.log2012-11-02T20:30:13.000+00001432897

Comments

  1. Dustin Hyde 2012-11-02

    This is an Xcode path issue. Printing the path showed studio was installed on the desktop with a space.
       DHydeMBP:~ dhyde$ xcode-select -print-path
       /Users/dhyde/Desktop/ios/Xcode/Xcode 4.4/Xcode.app/Contents/Developer
       
    I changed the path to applications and it worked. The work-around is to take away the space in the xcode path.
       DHydeMBP:~ dhyde$ sudo xcode-select -switch /Applications/Xcode.app 
       DHydeMBP:~ dhyde$ xcode-select -print-path
       /Applications/Xcode.app/Contents/Developer
       
    We might want to improve the error message or add support to paths with spaces.
  2. Ingo Muschenetz 2012-11-06

    Placing in API as core is booked this sprint.
  3. Sabil Rahim 2012-11-08

    https://github.com/appcelerator/titanium_mobile/pull/3385 PR pending .
  4. Vishal Duggal 2012-11-21

    Backport https://github.com/appcelerator/titanium_mobile/pull/3459
  5. Olga Romero 2012-12-05

    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

JSON Source