The second way of installing Xcode is by downloading an image from the Apple Developer Center; this step is not free, it's only available to members of the Apple Developer Program (which costs approximately $99 a year) or for people who work in companies that are members of this program.
For this recipe, you will need to have 2.2 gigabytes of free space besides the space stored by the installed Xcode, but I will assume that you won't have this problem.
The advantage of downloading a DMG file is that you can save it onto a DVD as a backup (you never know when this version of Xcode will be removed from the App Store). Also, if you work in a team, it is very important to have every member working with the same Xcode version. Also, if you want to install any beta version of Xcode, it will only be available through the Apple Developer Center.
To download the Xcode image, follow these steps:
The first step is to open your web browser; go to http://developer.apple.com, log in where it says Member Center. If you are a member of more than one team, it will ask you which account you want to use. Choose the most appropriate one.
After this, you will see a table with some options, choose iOS Dev Center or Mac Dev Center.
After downloading the DMG file, double-click on it and drag the Xcode icon into your
Application
folder. Remember that you need the administrator's permission to copy files into theApplications
folder.You can also install Xcode onto a different path like your home directory, but I wouldn't recommend this if it's not necessary.
The DMG file ensures that you can always have a backup of this Xcode version, so if for any reason, you have problems with future versions of Xcode, you can install the previous version. It is also possible to have more than one Xcode version installed onto your computer.