Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-3108

Your TARGET_BUILD_DIR is incorrectly set : Cannot set build/iphone/build path

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:
      • Titanium SDK 1.8.0.1
      • Xcode V4.2.1
      • Titanium Studio 1.0.7.201112281340
      • OSX 10.7.2

      Description

      Problem

      Launching newly created project in iOS simulator produces following exception:

      + TARGET_BUILD_DIR = /Users/mwhite/Documents/Titanium Studio Workspace/com.zytac.tit2/build/iphone/Debug-iphonesimulator
       
      Exception detected in script:
      Traceback (most recent call last):
        File "/Users/mwhite/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1274, 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/mwhite/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1202, in execute_xcode
          sys.exit(1)
      SystemExit: 1
      

      If you check the build.py script there is a test at line 1197. xcode will not be invoked if the test fails. I can see from the code that TARGET_BUILD_DIR must be equal to build_dir. HOWEVER in xcode 4.2 I have no idea how to correct TARGET_BUILD_DIR (ENV). The difference can clearly be seen mid string at ".....project/iphone/project....".

      It would help if the source of TARGET_BUILD_DIR was documented. Looking at the contents of this string it can only come from Titanium since Xcode can only obtain this string from the <project>.xcodeproj file which is created by Titanium.

      Test case

      Steps to reproduce:

      • create a new "Titanium mobile project" in Titanium studio. Use Xcode 4.2.1
      • do not add any new code to the project
      • build the project using "iPhone Simulator"

      Workaround

      • Open the <project>.xcodeproj file created by Titanium Studio by invoking the Xcode GUI. The compiled project can then be run using Xcode outside of Titanium.

      Discussions

      http://developer.appcelerator.com/question/117950/error-your-targetbuilddir-is-incorrectly-set
      http://developer.appcelerator.com/question/71331/really-thats-the-first-impression#answer-218760

        Attachments

          Activity

            People

            • Assignee:
              mpmiranda Mauro Parra-Miranda
              Reporter:
              mwhite Michael White
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration