How To Download Older Version Of Xcode
Xcode is the tool developers use to build apps for the Apple tree ecosystem – MacOS, iOS, and all things Apple.
This guide will walk you lot through how to successfully install Xcode onto your Mac, from start to finish.
Hither are some handy tips to know earlier you get started:
- Xcode only runs on a mac. If you are on a PC, sadly y'all won't exist able to utilise Xcode.
- Yous'll demand a good, stable net connection. The latest version is effectually 8 gigabytes in size.
- Be sure to accept at least xxx gigabytes of free space on your computer. The latest
.xipfile (v11.iv.one at the time of writing) is ~8 gigabytes zipped. When you lot unzip it, that'southward another 17 gigabytes. Then you'll demand the command line tool, which is yet another 1.5 gigabytes.
Here's an overview of the steps to install Xcode
- Download Xcode
- Install the command line tool
- Open the new version
- Delete files
Note that I have listed some Last commands in the steps below. These commands tin exist typed into your nowadays working directory. This means that you don't demand to navigate to any detail binder.
If you really want to, you lot can first type cd before typing the commands in the below steps. This will return y'all back to the dwelling folder.
Step #ane: Download Xcode
There are two means to practise this. For the latest version and a theoretically "easy" installation, yous can use the App Shop. I don't recommend this option.
I adopt to use the developer site. This comes with the bonus option of being able to download any version you'd similar.
Option #1: Download via the App Store for the latest version (not my preferred option)
In theory, this should be a seamless and pain-free process. But if the installation fails for any reason on the concluding pace, it is very hard to troubleshoot.
There are a few reasons for failure, and no piece of cake fashion to know which is the underlying cause. If yous do encounter a failure, you lot will need to re-download the entire file again each time yous try to fix the failure. As the latest version is 8 gigabytes, I didn't much savor this approach.
But if you lot're feeling brave, here are the steps:
- Open the App Store on your mac
- Sign in
- Search for Xcode
- Click install or update
Pick 2: Download via the Programmer site for a specific version (my preferred option)
- Head to the "more than" section of the Apple tree developer website
- Sign in with your iTunes account id
- Type in the version that yous'd like, and download the
Xcode_x_x_x.xipfile. Continue in mind that Xcode 11.four.ane is 8 gigabytes, so this volition take awhile depending on your internet connection. - Once the file is downloaded, click on
.xipto excerpt information technology. Your laptop volition extract it to the same folder you downloaded it to. This extraction process is automatic. You don't need to practice anything more later you click on the.xipfile. This pace will accept a few minutes. - [Optional] Once extracted, rename the application to "Xcode11.x.x" if you are using multiple versions.
- Drag application to the Applications folder
- [Optional] Gear up the new Xcode version as the default. Open up Concluding and type
sudo xcode-select -switch /Applications/Xcodex.x.x.app. Supersedeten.10.10with the version number. For example:Xcode11.4.i.app. You will need to enter in your computer admin password. I'm pretty certain this volition update the default Xcode version for all users on your calculator, so best to bank check with other users first
If y'all have multiple users on your computer, you will need to update the CLT for each user.
Download .dmg
To update the CLT, go to app programmer website and download the command line tool .dmg.
If you lot take never installed Xcode before, you may be able to update with your Terminal by typing in xcode-select --install instead of visiting the developer website.
But if you take an existing version of Xcode installed on your automobile, you'll probably run into this fault:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates This means yous'll demand to go to the programmer website instead.
Installing the CLT
When the .dmg has finished downloaded, double click the file to open up it. This volition open a little window that looks similar this:
Double click the box and follow the prompts to install the CLT. It will take a few minutes to complete.
It may ask you lot at the end of the installation whether you want to move this to the trash bin. When it does this, information technology'southward talking about moving the .dmg file to the trash bin. Since y'all should no longer need this file. I always say yes to this.
Stride #iii: Open up Xcode
Open the Applications folder and open the new version of Xcode. If you renamed Xcode, brand sure you open the correct application
Xcode may prompt you to install additional components. Click install. This volition have a few minutes.
While information technology's installing, check that your default Xcode version is the 1 yous simply downloaded:
- Open Final
- Type
brew config - You should see "CLT" and "Xcode" versions, as well equally everything else. This should reflect the version that you have just downloaded. In my case, I downloaded Xcode eleven.4.1.
CLT: xi.4.i.0.1.1586360307 Xcode: 11.4.ane => /Applications/Xcode11.4.1.app/Contents/Developer One time the components are installed, Xcode will launch. Yous should be able to pick up your old projects and go along where you left off seamlessly*.
*Notation that if yous use any proxy tools, such as Charles, you will need to re-install those certificates in your simulator over again.
If you encounter any errors while trying to build or run a project, check which device you are trying to launch. The new version may non remember the device y'all were using before. If so, click on the device and choose "Add additional simulators" from the drib down menu to add the device y'all want.
Step #4. Delete the files
If you don't need the older versions of Xcode on your reckoner, yous tin uninstall them and get some hard bulldoze space dorsum.
You can also delete the .xip file of the version you simply downloaded, equally well as the CLT.dmg file.
That'southward everything. I hope this has helped you successfully install Xcode. Accept fun with it!
Larn to code for free. freeCodeCamp'southward open source curriculum has helped more than 40,000 people get jobs as developers. Get started
DOWNLOAD HERE
Posted by: porterwhict1935.blogspot.com