How to Download Xcode on PC or Mac

This wikiHow teaches you how to install Xcode on a Mac or a Windows PC running VirtualBox. Download and install VirtualBox for Windows. This is a free, open-source hypervisor that enables you to run multiple virtual machines, including...

Table of Contents
Method 1 of 2:

Windows 10, 8.1, and 7

  1. images 1 of How to Download Xcode on PC or Mac
    Images 1 of How to Download Xcode on PC or Mac
    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]
    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).
      1. You must be using a 64-bit version of Windows with at least 4 GB of RAM.
    2. Run the installer, then follow the on-screen instructions to complete the installation.
  2. images 2 of How to Download Xcode on PC or Mac
    Images 2 of How to Download Xcode on PC or Mac
    Download macOS High Sierra Final. You can get the RAR version for free here.
    1. If you can't download it because the file is too large (it's 6 GB), you can get the fix here.
  3. images 3 of How to Download Xcode on PC or Mac
    Images 3 of How to Download Xcode on PC or Mac
    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.
  4. images 4 of How to Download Xcode on PC or Mac
    Images 4 of How to Download Xcode on PC or Mac
    Open VirtualBox. You'll find it in the All Apps area of the Start menu.
  5. images 5 of How to Download Xcode on PC or Mac
    Images 5 of How to Download Xcode on PC or Mac
    Click New. It's at the top-left corner of the app. The 'Create Virtual Machine' dialog will appear.
  6. images 6 of How to Download Xcode on PC or Mac
    Images 6 of How to Download Xcode on PC or Mac
    Type OSX into the 'Name' field.
  7. images 7 of How to Download Xcode on PC or Mac
    Images 7 of How to Download Xcode on PC or Mac
    Select Mac OS X from the 'Type' drop-down menu.
  8. images 8 of How to Download Xcode on PC or Mac
    Images 8 of How to Download Xcode on PC or Mac
    Select macOS 10.13 High Sierra (64-bit) or MacOS 64-Bit from the 'Version' drop-down.
    1. If you don't see any 64-bit options, you must enable VT-x or 'virtualization' in your BIOS settings. See Change Computer BIOS Settings to learn how to access the BIOS.
  9. Click Next. It's at the bottom of the window.
  10. images 9 of How to Download Xcode on PC or Mac
    Images 9 of How to Download Xcode on PC or Mac
    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.
  12. images 10 of How to Download Xcode on PC or Mac
    Images 10 of How to Download Xcode on PC or Mac
    Create a hard disk. Here's how:
    1. Click the button next to 'Use an existing virtual hard disk drive.'
    2. Click the browse icon.
    3. Navigate to the High Sierra .vmdk file you extracted earlier.
    4. Select the file and click Create.
  13. images 11 of How to Download Xcode on PC or Mac
    Images 11 of How to Download Xcode on PC or Mac
    Click Settings. It's at the top-left corner of the window.
  14. images 12 of How to Download Xcode on PC or Mac
    Images 12 of How to Download Xcode on PC or Mac
    Edit your virtual machine. Make the following updates to your settings:
    1. Click System in the left column.
      1. On the motherboard tab, select ICH9 from the 'Chipset' menu, then check the box next to Enable EFI.
      2. On the Processor tab, select 2 as the number of processors, then move the 'Execution cap' slider to the 70% mark.
    2. Click Display in the left column.
      1. On the Screen tab, select 128 MB as the 'Video Memory' value.
    3. Click OK to save your changes.
  15. images 13 of How to Download Xcode on PC or Mac
    Images 13 of How to Download Xcode on PC or Mac
    Close VirtualBox. You can do this by clicking the X at the top-right corner of the app.
  16. images 14 of How to Download Xcode on PC or Mac
    Images 14 of How to Download Xcode on PC or Mac
    Open an elevated command prompt on your PC. Here's how:
    1. Type cmd into the search box in the task bar.
    2. Right-click Command Prompt in the search results.
    3. Click Run as administrator. A black window with the command prompt will appear.
  17. images 15 of How to Download Xcode on PC or Mac
    Images 15 of How to Download Xcode on PC or Mac
    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:
    1. Type cd "C:Program FilesOracleVirtualBox" and press Enter.
    2. Type VBoxManage.exe modifyvm "Your VM Name" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff and press Enter.
    3. Type VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3" and press Enter.
    4. Type VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" and press Enter.
    5. Type VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" and press Enter.
    6. Type VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" and press Enter.
    7. Type VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 and press Enter.
  18. images 16 of How to Download Xcode on PC or Mac
    Images 16 of How to Download Xcode on PC or Mac
    Open VirtualBox again. You can also close the CMD window if you wish.
  19. images 17 of How to Download Xcode on PC or Mac
    Images 17 of How to Download Xcode on PC or Mac
    Click Start. It's the green arrow icon at the top-left corner of the app.
  20. images 18 of How to Download Xcode on PC or Mac
    Images 18 of How to Download Xcode on PC or Mac
    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.
  21. images 19 of How to Download Xcode on PC or Mac
    Images 19 of How to Download Xcode on PC or Mac
    Open the App Store
    images 20 of How to Download Xcode on PC or Mac
    Images 20 of How to Download Xcode on PC or Mac
    . It's in the Dock at the bottom of the screen.
  22. images 21 of How to Download Xcode on PC or Mac
    Images 21 of How to Download Xcode on PC or Mac
    Search for Xcode. Type xcode into the search bar at the top-right corner of the App Store and press Enter.
  23. images 22 of How to Download Xcode on PC or Mac
    Images 22 of How to Download Xcode on PC or Mac
    Click Xcode. It should be the first result. Look for the blue app store icon with a hammer.
  24. images 23 of How to Download Xcode on PC or Mac
    Images 23 of How to Download Xcode on PC or Mac
    Click Get. If you didn't sign in with your Apple ID during setup, you'll have to do so now.
  25. images 24 of How to Download Xcode on PC or Mac
    Images 24 of How to Download Xcode on PC or Mac
    Click Install. Xcode will install on your virtual Mac. When it's finished, an 'Open' button will appear.
  26. images 25 of How to Download Xcode on PC or Mac
    Images 25 of How to Download Xcode on PC or Mac
    Click Open to launch Xcode.
  27. images 26 of How to Download Xcode on PC or Mac
    Images 26 of How to Download Xcode on PC or Mac
    Click Agree. It's at the bottom-right corner of the license agreement pop-up.
  28. images 27 of How to Download Xcode on PC or Mac
    Images 27 of How to Download Xcode on PC or Mac
    Enter your Mac administrator password to continue. Xcode will now install some additional features.
  29. images 28 of How to Download Xcode on PC or Mac
    Images 28 of How to Download Xcode on PC or Mac
    Start a new project.
    1. If you're new to Xcode, select Get started with a playground to code in a preset environment.
    2. To start a project from scratch, click Create a new Xcode project.
    3. If asked to enable developer mode on your Mac, click OK.
Method 2 of 2:

macOS

  1. images 29 of How to Download Xcode on PC or Mac
    Images 29 of How to Download Xcode on PC or Mac
    Open the App Store
    images 30 of How to Download Xcode on PC or Mac
    Images 30 of How to Download Xcode on PC or Mac
    . You'll find its icon on the Dock, which is usually at the bottom of the screen.
  2. images 31 of How to Download Xcode on PC or Mac
    Images 31 of How to Download Xcode on PC or Mac
    Type xcode into the search bar and press Return. A list of matching results will appear.
  3. images 32 of How to Download Xcode on PC or Mac
    Images 32 of How to Download Xcode on PC or Mac
    Click Xcode. It should be the first result. Look for the blue app store icon with a hammer.
  4. images 33 of How to Download Xcode on PC or Mac
    Images 33 of How to Download Xcode on PC or Mac
    Click Get.
  5. images 34 of How to Download Xcode on PC or Mac
    Images 34 of How to Download Xcode on PC or Mac
    Click Install. Xcode will now download and install on your Mac. When the app is finished installing, the 'Install' button will change to 'Open.'
  6. images 35 of How to Download Xcode on PC or Mac
    Images 35 of How to Download Xcode on PC or Mac
    Click Open. Xcode will launch.
  7. images 36 of How to Download Xcode on PC or Mac
    Images 36 of How to Download Xcode on PC or Mac
    Click Agree. It's at the bottom-right corner of the license agreement pop-up.
  8. images 37 of How to Download Xcode on PC or Mac
    Images 37 of How to Download Xcode on PC or Mac
    Enter your administrator password. Xcode will now install additional components on your Mac.
  9. images 38 of How to Download Xcode on PC or Mac
    Images 38 of How to Download Xcode on PC or Mac
    Start a new project.
    1. If you're new to Xcode, select Get started with a playground to code in a preset environment.
    2. To start a project from scratch, click Create a new Xcode project.
    3. If asked to enable developer mode on your Mac, click OK.
4.5 | 2 Vote
« PREV : How to Back Up Your...
How to Get an Apple... : NEXT »