How to Download Xcode on Mac 10.13 6
Xcode is the tool developers utilize 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.
Here are some handy tips to know earlier you get started:
- Xcode only runs on a mac. If you are on a PC, sadly yous won't exist able to use Xcode.
- Y'all'll need a good, stable internet connection. The latest version is effectually 8 gigabytes in size.
- Be sure to have at to the lowest degree 30 gigabytes of free space on your computer. The latest
.xip
file (v11.4.1 at the time of writing) is ~viii gigabytes zipped. When you lot unzip it, that'south some other 17 gigabytes. And so 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
Annotation that I have listed some Terminal commands in the steps below. These commands can be typed into your present working directory. This means that yous don't need to navigate to any particular folder.
If you actually want to, you tin first type cd
before typing the commands in the below steps. This will return you dorsum to the home binder.
Pace #1: Download Xcode
There are 2 ways to do this. For the latest version and a theoretically "easy" installation, y'all can utilize the App Store. I don't recommend this option.
I adopt to employ the developer site. This comes with the bonus option of beingness able to download any version you'd like.
Selection #one: 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 whatever reason on the last step, it is very hard to troubleshoot.
There are a few reasons for failure, and no easy way to know which is the underlying cause. If yous practise encounter a failure, you volition need to re-download the entire file again each fourth dimension you endeavor to fix the failure. Every bit the latest version is viii gigabytes, I didn't much enjoy this approach.
But if you're feeling brave, hither are the steps:
- Open 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 choice)
- Head to the "more" section of the Apple programmer website
- Sign in with your iTunes account id
- Type in the version that y'all'd like, and download the
Xcode_x_x_x.xip
file. Go along in mind that Xcode 11.4.1 is 8 gigabytes, so this will take awhile depending on your internet connection. - Once the file is downloaded, click on
.xip
to excerpt it. Your laptop will extract it to the same binder you downloaded it to. This extraction process is automatic. You don't demand to do anything more after you click on the.xip
file. This stride will take a few minutes. - [Optional] Once extracted, rename the application to "Xcode11.x.x" if you lot are using multiple versions.
- Elevate application to the Applications folder
- [Optional] Set the new Xcode version as the default. Open up Terminal and type
sudo xcode-select -switch /Applications/Xcodex.x.x.app
. Supercedex.x.x
with the version number. For case:Xcode11.4.1.app
. You will demand to enter in your computer admin password. I'thou pretty certain this will update the default Xcode version for all users on your computer, so all-time to cheque 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 control line tool .dmg
.
If you have never installed Xcode before, you lot may exist able to update with your Terminal by typing in xcode-select --install
instead of visiting the developer website.
Merely if yous have an existing version of Xcode installed on your motorcar, you'll probably see this error:
xcode-select: error: control line tools are already installed, use "Software Update" to install updates
This ways you'll need to go to the programmer website instead.
Installing the CLT
When the .dmg
has finished downloaded, double click the file to open it. This will open a little window that looks like this:
Double click the box and follow the prompts to install the CLT. Information technology will take a few minutes to complete.
Information technology may ask you at the end of the installation whether you want to motility this to the trash bin. When it does this, it'due south talking about moving the .dmg
file to the trash bin. Since yous should no longer need this file. I always say yes to this.
Step #iii: Open Xcode
Open the Applications folder and open the new version of Xcode. If you renamed Xcode, make sure you open the correct application
Xcode may prompt you to install boosted components. Click install. This will have a few minutes.
While it's installing, check that your default Xcode version is the one yous just downloaded:
- Open Terminal
- Type
brew config
- Y'all should run across "CLT" and "Xcode" versions, equally well equally everything else. This should reflect the version that you lot have just downloaded. In my case, I downloaded Xcode xi.4.one.
CLT: eleven.4.one.0.1.1586360307 Xcode: 11.four.i => /Applications/Xcode11.4.one.app/Contents/Developer
Once the components are installed, Xcode will launch. You should be able to selection upward your sometime projects and continue where you lot left off seamlessly*.
*Notation that if you lot use whatsoever proxy tools, such equally Charles, you will need to re-install those certificates in your simulator again.
If you see any errors while trying to build or run a project, check which device you are trying to launch. The new version may not remember the device you were using before. If so, click on the device and cull "Add boosted simulators" from the drop down card to add the device you want.
Pace #iv. Delete the files
If you don't need the older versions of Xcode on your computer, you can uninstall them and get some hard bulldoze infinite dorsum.
You can besides delete the .xip
file of the version you simply downloaded, likewise as the CLT.dmg
file.
That's everything. I hope this has helped you lot successfully install Xcode. Have fun with it!
Larn to code for costless. freeCodeCamp's open source curriculum has helped more than 40,000 people become jobs as developers. Get started
How to Download Xcode on Mac 10.13 6
Posted by: kesslercomem1989.blogspot.com
0 Comments