[TIMOB-7878] iOS: Xcode 4.3 - Xcode-select must be run on clean install of Xcode 4.3 in order to use Titanium
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-19T13:10:19.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | Sprint 2012-05, Release 2.0.0 |
Components | iOS |
Labels | qe-xcode43 |
Reporter | Eric Merriman |
Assignee | Blain Hamon |
Created | 2012-03-05T11:09:44.000+0000 |
Updated | 2012-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
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}
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.
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.