Apple has made some big changes to their developer tools lately. The new Xcode 4 is a huge change from Xcode 3. I’ll admit that I’ve moved from “I hate it!!” to “I don’t hate it anymore.” But that took some time.
The other big change is that Xcode is now available only from the Mac App Store, of course for free. In previous versions when you installed the Developer Tools package, you'd get gcc, make, and all the usual developer tools you’d expect as part of the installation. Now “Developer Tools” means “the Xcode app.” If you install it and go to the command line, you might be a little surprised to still see this:
% make -bash: make: command not found % gcc -bash: gcc: command not found % cc -bash: cc: command not found
You need to perform one more step. Open Xcode, and then go to Preferences ➔ Downloads and select the “Components” tab. There you can click the install button next to “Command Line Tools”.
For those of you who miss the contents of the old /Developer directory read on. Its contents are not gone, but they now live inside the Xcode application itself. In the Finder, if you control-click (or right-click) on the Xcode icon and select “Show Package Contents”. But there are other ways to get to what you need; you don’t really need to go there. For example, to access the very handy File Merge tool, you get to it from the Xcode menu:
It’s rather annoying that Apple has “hidden” FileMerge like that, but hey, now you know where it is. What, you’ve never used it before?? It’s perfect for comparing two text files visually. Give a try — it’s a lot nicer than diff on the command line.