How to Download Xcode on PC or Mac (with Pictures) – wikiHow
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/c\/c3\/Download-Xcode-on-PC-or-Mac-Step-1.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-1.jpg”,”bigUrl”:”\/images\/thumb\/c\/c3\/Download-Xcode-on-PC-or-Mac-Step-1.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-1.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
1
Download and install VirtualBox for Windows. This is a free, open-source hypervisor that enables you to run multiple virtual machines, including Xcode for macOS.[1]
- Go to https://www.virtualbox.org/wiki/Downloads and click Windows hosts. This starts the download (though you may have to click Save or Download to continue).
- You must be using a 64-bit version of Windows with at least 4 GB of RAM.
- Run the installer, then follow the on-screen instructions to complete the installation.
This is a free, open-source hypervisor that enables you to run multiple virtual machines, including Xcode for macOS.
- Go to https://www.virtualbox.org/wiki/Downloads and click Windows hosts. This starts the download (though you may have to click Save or Download to continue).
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/c\/c1\/Download-Xcode-on-PC-or-Mac-Step-3.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-3.jpg”,”bigUrl”:”\/images\/thumb\/c\/c1\/Download-Xcode-on-PC-or-Mac-Step-3.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-3.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
3
Extract the RAR file. You can use any extraction app that supports RAR files, such as WinRAR or WinZip. Once the file is extracted, you’ll have a folder containing a High Sierra .vmdk file and a .txt file.
9
Click
Next
. It’s at the bottom of the window.
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/3\/3d\/Download-Xcode-on-PC-or-Mac-Step-10.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-10.jpg”,”bigUrl”:”\/images\/thumb\/3\/3d\/Download-Xcode-on-PC-or-Mac-Step-10.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-10.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
10
Drag the slider to the desired memory size. This is how much hard drive space you’ll allocate to High Sierra. It’s best to use between 3 GB and 6 GB.
11
Click
Next
.
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/0\/01\/Download-Xcode-on-PC-or-Mac-Step-12.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-12.jpg”,”bigUrl”:”\/images\/thumb\/0\/01\/Download-Xcode-on-PC-or-Mac-Step-12.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-12.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
12
Create a hard disk. Here’s how:
- Click the button next to “Use an existing virtual hard disk drive.”
- Click the browse icon.
- Navigate to the High Sierra .vmdk file you extracted earlier.
- Select the file and click Create.
Here’s how:
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/4\/4f\/Download-Xcode-on-PC-or-Mac-Step-14.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-14.jpg”,”bigUrl”:”\/images\/thumb\/4\/4f\/Download-Xcode-on-PC-or-Mac-Step-14.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-14.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
14
Edit your virtual machine. Make the following updates to your settings:
- Click System in the left column.
- On the motherboard tab, select ICH9 from the “Chipset” menu, then check the box next to Enable EFI.
- On the Processor tab, select 2 as the number of processors, then move the “Execution cap” slider to the 70% mark.
- Click Display in the left column.
- On the Screen tab, select 128 MB as the “Video Memory” value.
- Click OK to save your changes.
Make the following updates to your settings:
- Click System in the left column.
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/2\/2a\/Download-Xcode-on-PC-or-Mac-Step-16.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-16.jpg”,”bigUrl”:”\/images\/thumb\/2\/2a\/Download-Xcode-on-PC-or-Mac-Step-16.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-16.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
16
Open an elevated command prompt on your PC. Here’s how:
- Type cmd into the search box in the task bar.
- Right-click Command Prompt in the search results.
- Click Run as administrator. A black window with the command prompt will appear.
Here’s how:
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/8\/82\/Download-Xcode-on-PC-or-Mac-Step-17.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-17.jpg”,”bigUrl”:”\/images\/thumb\/8\/82\/Download-Xcode-on-PC-or-Mac-Step-17.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-17.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
17
Run these commands at the prompt. Run these in order, but replace the paths to the location of your VirtualBox, and “Your VM Name” with its name:
- Type cd “C:\Program Files\Oracle\VirtualBox\” and press
↵
Enter.
- Type VBoxManage.exe modifyvm “Your VM Name” –cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff and press
↵
Enter.
- Type VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “MacBookPro11,3” and press
↵
Enter.
- Type VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0” and press
↵
Enter.
- Type VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple” and press
↵
Enter.
- Type VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc” and press
↵
Enter.
- Type VBoxManage setextradata “Your VM Name” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1 and press
↵
Enter.
Run these in order, but replace the paths to the location of your VirtualBox, and “Your VM Name” with its name:
- Type cd “C:\Program Files\Oracle\VirtualBox\” and press
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/9\/91\/Download-Xcode-on-PC-or-Mac-Step-20.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-20.jpg”,”bigUrl”:”\/images\/thumb\/9\/91\/Download-Xcode-on-PC-or-Mac-Step-20.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-20.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
20
Set up your virtual Mac. Follow the on-screen instructions to set up High Sierra like you’re setting up a new computer, and log in with your Apple ID as prompted. When you’re finished, your virtual Mac will display its home screen.
{“smallUrl”:”https:\/\/www.wikihow.com\/images\/thumb\/e\/ec\/Download-Xcode-on-PC-or-Mac-Step-29.jpg\/v4-460px-Download-Xcode-on-PC-or-Mac-Step-29.jpg”,”bigUrl”:”\/images\/thumb\/e\/ec\/Download-Xcode-on-PC-or-Mac-Step-29.jpg\/aid9929106-v4-728px-Download-Xcode-on-PC-or-Mac-Step-29.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=\”mw-parser-output\”><p>License: <a target=\”_blank\” rel=\”nofollow noreferrer noopener\” class=\”external text\” href=\”https:\/\/en.wikipedia.org\/wiki\/Fair_use\”>Fair Use<\/a> (screenshot)<br>\n<\/p><\/div>”}
29
Start a new project.
- If you’re new to Xcode, select Get started with a playground to code in a preset environment.
- To start a project from scratch, click Create a new Xcode project.
- If asked to enable developer mode on your Mac, click OK.
Since Xcode is only available for macOS, you need to download a virtual machine to emulate a Mac.
Advertisement