Opened 13 years ago

Closed 13 years ago

#33724 closed defect (fixed)

Installer hangs when Xcode 4.3 is incorrectly installed

Reported by: glen.henshaw@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.1.0
Component: base Version: 2.0.4
Keywords: installer Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installing Xcode 4.3 requires the user to execute:

xcode-select -switch /Applications/Xcode.app/Resources/Developer/

from the command line in order for xcodebuild to execute correctly. If this is not done, xcodebuild hangs. The installer requires xcodebuild; therefore, this condition will hang the installer. The installer should have a timeout on xcodebuild and give the user an appropriate error message.

Change History (2)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

I'm wondering what part of the installer requires xcodebuild.... Is it just that the installer uses "sudo port selfupdate", and every port command always calls xcodebuild now?

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.1.0
Resolution: fixed
Status: newclosed
Type: enhancementdefect

It actually only hangs (or rather, infinite loops) when the xcode-select path is /, which you have to have set yourself. Anyway, r91518 should stop the installer from hanging, but you may still run into it when trying to build ports, if developer_dir isn't accessed first thus triggering the validity check.

Note: See TracTickets for help on using tickets.