I removed an older version of Xcode following the instructions in How to fully remove Xcode 4 and then installed version 4.3 from AppStore. But now /developer directory is missing.
I can find the same directory structure in /applications/xcode.app/contents/Developer/. Is /developer just a link to that directory and how can I create it again?
According to the XCode 4.3 release notes, the /developer directory is no longer needed.
/Developer No Longer Exists
The simplification afforded by repackaging
Xcode 4.3 as a single app bundle eliminates the need for the
/Developer directory containing prior versions of Xcode. As a result,
the Install Xcode application and the uninstall-devtools command line
script are also no longer needed.
The /Developer directory is no longer used by Xcode as jonkroll noted.
If you are looking for command line tools, you can install them using the Components tab of the Downloads preferences panel.
Yes you're right, now /Developer directory is embedded into XCode.app. So you have to make an alias to this new directory or change your path to this new folder.
One easy way to get to it is to right click on an existing framework that you have imported in your project; then choose "open in finder". Then you can hit option + the up arrow key on your key board to traverse up to the developer folder (e.g if you want to peruse the contents of your simulator documents folder etc...) & make a short cut to it for direct navigation..
Switching directories worked for me:
sudo xcode-select -switch /