Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7878] iOS: Xcode 4.3 - Xcode-select must be run on clean install of Xcode 4.3 in order to use Titanium

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-19T13:10:19.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sSprint 2012-05, Release 2.0.0
ComponentsiOS
Labelsqe-xcode43
ReporterEric Merriman
AssigneeBlain Hamon
Created2012-03-05T11:09:44.000+0000
Updated2012-07-13T14:11:19.000+0000

Description

Description: While testing Xcode 4.3 integration with our tools I used a clean system to install Xcode 4.3 then Studio and 1.8.2 SDK. I was unable to use the Xcode install until I used Xcode-select and set the path to /Applications/Xcode.app/Contents/Developer. Steps to reproduce: 1) On a clean Mac OS X image, install Xcode 4.3 from the Mac App store 2) Install Studio 1.0.9 3) Allow Studio to install 1.8.2 GA SDK 4) Check Dashboard configuration or try to build a project Result: You will be unable to make use of Xcode Expected: Xcode available and projects can be created and run

Comments

  1. Blain Hamon 2012-03-07

    Note to self: The following require xcode-select and thus need to be updated: {quote} module/iphone/xcode/install.py needs to not install into /Developer xcodedir = os.path.join("/Developer","Platforms","iPhoneOS.platform","Developer","Library","Xcode") Installs to wrong location. Worse yet, is this even allowed, or will it break codesigning? module/iphone/templates/build.py uses xcodebuild rc = os.system("xcodebuild -sdk iphoneos -configuration Release") rc = os.system("xcodebuild -sdk iphonesimulator -configuration Release") iphone/builder.py needs to not use /Developer for packaging; uses XCodeSelect; uses xcodebuild. output = run.run(["xcodebuild","-showsdks"],True,False) output = run.run(['xcodebuild','-version'],True,False) xcode_path=run.run(["/usr/bin/xcode-select","-print-path"],True,False) args = ["xcodebuild","-target",config,"-configuration",target,"-sdk",sdk] 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) xcodeselectpath = os.popen("/usr/bin/xcode-select -print-path").readline().rstrip('\n') xc_path = os.path.join(run.run(['xcode-select','-print-path'],True,False).rstrip(),'Applications','Xcode.app') iphone/compiler.py Uses xcode select. path = run.run(["/usr/bin/xcode-select","-print-path"],True,False) iphone/logger.py xoutput = run.run(["xcodebuild","-version"]) -- This is redundant with dropping 3.x Logger.py needs updating to 5.1.x, drop support for 3.x iphone/prereq.py output = run.run(["xcodebuild","-showsdks"],True,False) {quote}
  2. Blain Hamon 2012-03-11

       To see if xcode-select is working fine:
       $ xcode-select -print-path
       /Developer
       
       To reproduce without Xcode 4.3:
       $ cd /usr/share/xcode-select/
       $ ls
       xcode_dir_path
       $ cat xcode_dir_path 
       /Developer
       $ sudo rm xcode_dir_path 
       $ xcode-select -print-path
       xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.
       $ cat xcode_dir_path 
       cat: xcode_dir_path: No such file or directory
       
       Setting the environment variable in bash:
       $ DEVELOPER_DIR=/Developer
       $ xcode-select -print-path
       /Developer
       
    So to test, try running the command line tools after xcode-select generates an error. This will require the latest TiStud to test building from TiStud.
  3. Eric Merriman 2012-03-19

    Verified fixed (on Xcode 4.3 only installs, Xcode select need not be set) with 2.0.0.v20120319003254 and Titanium Studio, build: 2.0.0.201203182248.

JSON Source