Fix Xcode 4.3 for MacPorts on Lion (10.7)

Xcode-4.3Since the 4.3 version of Xcode on Lion, it no longer resides in the Developer folder in the root of your hard drive, but as an app in the Applications folder. It also no longer installs the Command Line Tools by default. This in turn breaks many of the dependencies of  MacPorts. The first step to fix this is open Xcode and go to Preferences in the Menu Bar under Xcode. Once that is open go to the Downloads section and click Install next to Command Line Tools.


After that is done, open the Terminal and type:

sudo xcode-select -switch /Applications/

Press Enter, type your password and now MacPorts and Xcode Tools should now work together like normal.


Tagged with: , , , , ,
Posted in Macintosh

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this site and receive notifications of new posts by email.

Join 196 other followers

Flickr Photos
wordpress com stats plugin
%d bloggers like this: