How to Download Xcode on Mac 10.13.6
Xcode is the tool developers employ to build apps for the Apple ecosystem – MacOS, iOS, and all things Apple.
This guide volition walk you through how to successfully install Xcode onto your Mac, from start to finish.
Hither are some handy tips to know before you become started:
- Xcode only runs on a mac. If you are on a PC, sadly yous won't be able to use Xcode.
- You'll demand a skillful, stable net connectedness. The latest version is effectually viii gigabytes in size.
- Exist sure to have at least 30 gigabytes of free space on your reckoner. The latest
.xip
file (v11.4.one at the time of writing) is ~8 gigabytes zipped. When yous unzip it, that'southward another 17 gigabytes. And so you'll need the command line tool, which is yet another 1.5 gigabytes.
Hither'southward an overview of the steps to install Xcode
- Download Xcode
- Install the command line tool
- Open up the new version
- Delete files
Annotation that I accept listed some Terminal commands in the steps below. These commands can be typed into your present working directory. This means that y'all don't need to navigate to whatever particular binder.
If you really want to, you lot can outset type cd
before typing the commands in the beneath steps. This will return you back to the home folder.
Footstep #i: Download Xcode
There are 2 ways to practice this. For the latest version and a theoretically "easy" installation, you can use the App Store. I don't recommend this option.
I prefer to use the developer site. This comes with the bonus choice of being able to download any version yous'd like.
Option #ane: Download via the App Store for the latest version (not my preferred option)
In theory, this should be a seamless and pain-gratis process. But if the installation fails for any reason on the final step, it is very hard to troubleshoot.
At that place are a few reasons for failure, and no easy way to know which is the underlying crusade. If you practise encounter a failure, you will need to re-download the entire file again each fourth dimension y'all attempt to ready the failure. As the latest version is 8 gigabytes, I didn't much enjoy this approach.
But if you're feeling brave, here are the steps:
- Open up the App Store on your mac
- Sign in
- Search for Xcode
- Click install or update
Option 2: Download via the Developer site for a specific version (my preferred option)
- Caput to the "more than" section of the Apple developer website
- Sign in with your iTunes account id
- Type in the version that you'd like, and download the
Xcode_x_x_x.xip
file. Proceed in listen that Xcode eleven.4.1 is 8 gigabytes, so this will take awhile depending on your cyberspace connexion. - Once the file is downloaded, click on
.xip
to extract it. Your laptop will extract it to the same folder you downloaded it to. This extraction process is automatic. Yous don't demand to exercise anything more afterwards you click on the.xip
file. This footstep 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] Set the new Xcode version as the default. Open Terminal and blazon
sudo xcode-select -switch /Applications/Xcodex.x.x.app
. Replacex.x.x
with the version number. For example:Xcode11.iv.1.app
. You volition need to enter in your estimator admin password. I'g pretty sure this will update the default Xcode version for all users on your estimator, so all-time to check with other users first
If you 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 developer website and download the command line tool .dmg
.
If you have never installed Xcode before, you may exist able to update with your Concluding by typing in xcode-select --install
instead of visiting the developer website.
But if yous have an existing version of Xcode installed on your auto, you'll probably meet this error:
xcode-select: mistake: command line tools are already installed, use "Software Update" to install updates
This means y'all'll need to go to the developer website instead.
Installing the CLT
When the .dmg
has finished downloaded, double click the file to open it. This will open up a footling 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 stop of the installation whether you desire to movement this to the trash bin. When it does this, it's talking about moving the .dmg
file to the trash bin. Since y'all should no longer need this file. I always say yeah to this.
Step #3: Open Xcode
Open the Applications folder and open up the new version of Xcode. If you renamed Xcode, brand certain you open up the correct awarding
Xcode may prompt you to install boosted components. Click install. This will take a few minutes.
While it's installing, check that your default Xcode version is the one you just downloaded:
- Open Terminal
- Type
brew config
- You should meet "CLT" and "Xcode" versions, as well as everything else. This should reverberate the version that you have just downloaded. In my case, I downloaded Xcode eleven.iv.1.
CLT: 11.4.1.0.1.1586360307 Xcode: xi.4.1 => /Applications/Xcode11.4.1.app/Contents/Developer
Once the components are installed, Xcode volition launch. Yous should be able to option upward your one-time projects and go on where yous left off seamlessly*.
*Notation that if y'all use whatsoever proxy tools, such as Charles, you will need to re-install those certificates in your simulator once 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 not think the device you were using before. If so, click on the device and choose "Add additional simulators" from the drop downwards carte to add the device you want.
Step #iv. Delete the files
If y'all don't need the older versions of Xcode on your computer, you tin uninstall them and get some hard drive space back.
Yous can also delete the .xip
file of the version you just downloaded, as well as the CLT.dmg
file.
That's everything. I promise this has helped you lot successfully install Xcode. Have fun with information technology!
Larn to code for free. freeCodeCamp's open source curriculum has helped more than forty,000 people get jobs equally developers. Get started
How to Download Xcode on Mac 10.13.6
Posted by: gosselinthimpare.blogspot.com
Post a Comment