Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-11658

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: Release 3.0.0, Release 2.1.3
    • Component/s: iOS, Tooling
    • Labels:
    • Environment:

      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

      1. build.log
        1.37 MB
        Dustin Hyde

        Activity

        Hide
        Dustin Hyde added a comment - - edited

        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.

        Show
        Dustin Hyde added a comment - - edited 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.
        Hide
        Ingo Muschenetz added a comment -

        Placing in API as core is booked this sprint.

        Show
        Ingo Muschenetz added a comment - Placing in API as core is booked this sprint.
        Show
        Sabil Rahim added a comment - https://github.com/appcelerator/titanium_mobile/pull/3385 PR pending .
        Show
        Vishal Duggal added a comment - Backport https://github.com/appcelerator/titanium_mobile/pull/3459
        Hide
        Olga Romero added a comment - - edited

        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

        Show
        Olga Romero added a comment - - edited 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

          People

          • Assignee:
            Sabil Rahim
            Reporter:
            Dustin Hyde
          • Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development