From Xcode 4.3, the xcode is available on mac app store. If you download it from mac app store, it will be installed in this folder: /Applications/Xcode.app
.
If xcode version is below 4.3, the installation directory can be changed in the installation wizard. The default installation directory is in /Developer
folder. And if you choose the default folder when install xcode4.2 and the xcode3.2 is also in that folder. The xcode3.2 will be over written and removed.
If you want to keep both xcode 4.2 and 3.2, you can install them in different folder. For example, I installed xcode 3.2 in folder /xcode3
and xcode 4.2 in folder /xcode4
, and I also have a xcode4.3 in folder /Applications/Xcode.app
.
The problem is the newest ios simulator is only available in the lastest xcode. For example, the ios5.1 simulator is only available in xcode4.3 . So, maybe we should spend time to get familiar with the lastest xcode.
Hope it will help.