Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

today I tried to install the new version of Xcode. Before that I removed the developer tools with the following command:

sudo /Library/Developer/Shared/uninstall-devtools --mode=all

I also had other folder in /Library/Developer such as 4.2 4.2.1 ...

After that I installed the new Xcode and I noticed that the folder /Library/Developer contains only the Shared folder, which doesn't contain the command uninstall-devtools.

Did I install the developer tools or do I have to do something more?

Another related problem is that when I try to install Flann through Homebrew it reports the following error:

xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.

How can I fix it?

share|improve this question
    
I think XCode is now installed under /Developer –  Jason Feb 17 '12 at 16:56
    
I don't have the folder /Developer... Don't know why! –  Maverik Feb 17 '12 at 16:59
2  
@Jason with the update in 4.3, Xcode now installs into /Applications, no longer uses the /Developer folders. –  jmlumpkin Feb 17 '12 at 18:56

4 Answers 4

up vote 7 down vote accepted

Installing Xcode 4.3 does install the developer tools, but not for command line access. With this version, everything has been moved into the application bundle, which means there is no need for a uninstaller, since you can just delete the application. If you want to install the command line tools, open Xcode and go to Xcode > Preferences > Downloads, select the Components tab, and click the button next to Command Line Tools. (This might add an uninstaller somewhere, but I'm not sure.)

As for Homebrew, you might have to wait for an update before it supports Xcode 4.3, since everything was moved. I would suggest trying /Applications/Xcode.app as the <xcode_folder_path>, since most of the hierarchy appears to be the same.

The homebrew developers are tracking these changes in their bug database so, you may want to monitor this thread for workarounds and notification of when the homebrew system will effortlessly work with the new changes for Xcode 4.3.

share|improve this answer
    
So in you opinion if I have already installed XCode and the Command Line Tools then am I in the same situation of this morning? :D (Of course with a newer version of the dev tools). –  Maverik Feb 17 '12 at 17:03
1  
If you type man xcode-select you will discover that the right path is /Applications/Xcode.app/ –  Maverik Feb 17 '12 at 17:49
    
@lucaghera OK, thanks. I was just guessing that it wanted the Developer folder. I'll fix my answer then. –  ughoavgfhw Feb 17 '12 at 20:35

Apple is providing these command line developer tools as a stand alone package now, so you may wish to get a free developer account if you don't want to wait for homebrew to change and locate / link to the new directory structure.

A nice summary of the state of affairs on Xcode 4.3.x and older as well as the upcoming changes and benefits of having the command line tools packaged by Apple officially with headers is on Kenneth Reitz's blog.

share|improve this answer

xcode-select -select "/Applications/Xcode.app" fixed this problem for me. Everything is peachy now.

share|improve this answer

When you download Xcode from the App Store, you're actually downloading an app called Install Xcode. You need to run that if you haven't; I'm not clear on whether or not you performed this step. Once you do that, you will have

/Developer/Applications/Xcode.app

and other components (assuming you install to the default location), but look for Xcode.app first.

share|improve this answer
    
This has changed with the release of Xcode 4.3 which installs in /Applications as any other application. /Developer is not used any longer and Xcode 4.3 offers to delete it when starting for the first time. –  patrix Feb 17 '12 at 19:22
    
Ah, thanks. I'm still using Xcode 4.2 here. –  bneely Feb 17 '12 at 19:35
1  
Xcode 4.3 is actually the root cause for all these Xcode related questions today. –  patrix Feb 17 '12 at 19:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.