How to Download Xcode on PC or Mac Computer

Table of contents:

How to Download Xcode on PC or Mac Computer
How to Download Xcode on PC or Mac Computer

Video: How to Download Xcode on PC or Mac Computer

Video: How to Download Xcode on PC or Mac Computer
Video: How to Give/Change App Permissions on macOS/MacBook 2024, December
Anonim

This wikiHow teaches you how to install Xcode on a Mac or Windows PC running VirtualBox.

Step

Method 1 of 2: On Windows 10, 8.1, and 7

Download Xcode on PC or Mac Step 1
Download Xcode on PC or Mac Step 1

Step 1. Download and install the VirtualBox for Windows program

This program is a free, open source hypervisor that allows you to run multiple virtual machines, including Xcode for MacOS.

  • Visit https://www.virtualbox.org/wiki/Downloads and click " Windows hosts " The file will download immediately afterwards (you may need to click the “ Save " or " Download " to continue).

    The computer must be running a 64-bit version of Windows with at least 4 GB of RAM

  • Run the installation file, then follow the on-screen instructions to complete the process.
Download Xcode on PC or Mac Step 2
Download Xcode on PC or Mac Step 2

Step 2. Download macOS High Sierra Final

You can download the free RAR version here.

If you can't download it because the file size is too large (6 GB), you can find a fix or workaround here

Download Xcode on PC or Mac Step 3
Download Xcode on PC or Mac Step 3

Step 3. Extract the downloaded RAR file

You can use an extractor application that supports the RAR format such as WinRAR or WinZip. Once the files are extracted, you will have a folder containing the High Sierra “.vmdk” file and the “.txt” extension.

Download Xcode on PC or Mac Step 4
Download Xcode on PC or Mac Step 4

Step 4. Open VirtualBox

You can find it in the “ All Apps ” in the “Start” menu.

Download Xcode on PC or Mac Step 5
Download Xcode on PC or Mac Step 5

Step 5. Click New

It's in the upper-left corner of the app window. The “Create Virtual Machine” dialog box will load afterwards.

Download Xcode on PC or Mac Step 6
Download Xcode on PC or Mac Step 6

Step 6. Type OSX into the “Name” field

Download Xcode on PC or Mac Step 7
Download Xcode on PC or Mac Step 7

Step 7. Select Mac OS X from the “Type” drop-down menu

Download Xcode on PC or Mac Step 8
Download Xcode on PC or Mac Step 8

Step 8. Choose macOS 10.13 High Sierra (64-bit) or MacOS 64-Bit from the “Version” drop-down menu.

If you don't see the 64 bit option, enable “VT-x” or virtualization (“virtualization”) in the BIOS settings. Read this article to find out how to access the BIOS

Step 9. Click Next

It's at the bottom of the window.

Download Xcode on PC or Mac Step 10
Download Xcode on PC or Mac Step 10

Step 10. Drag the slider to the desired memory size

This slider determines how much hard drive space you will allocate for High Sierra. It's a good idea to use 3-6 GB.

Step 11. Click Next

Download Xcode on PC or Mac Step 12
Download Xcode on PC or Mac Step 12

Step 12. Create a hard drive

Follow these steps to create one:

  • Click the button next to “Use an existing virtual hard disk drive”.
  • Click the search icon.
  • Locate the previously extracted High Sierra “.vmdk” file.
  • Select the file and click " Create ”.
Download Xcode on PC or Mac Step 13
Download Xcode on PC or Mac Step 13

Step 13. Click Settings

It's in the upper-left corner of the window.

Download Xcode on PC or Mac Step 14
Download Xcode on PC or Mac Step 14

Step 14. Edit the virtual machine

Make the following updates to the machine 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 tab " Processor ", choose"

      Step 2.” as the processor number, then slide the “Execution cap” slider to the number “ 70% ”.

  • Click Display ” in the left column.

    On the tab " Screen ", choose " 128 MB ” as “Video Memory” value.

  • Click " OK ” to save changes.
Download Xcode on PC or Mac Step 15
Download Xcode on PC or Mac Step 15

Step 15. Close VirtualBox

You can close the program by clicking the X ” in the upper right corner of the application window.

Download Xcode on PC or Mac Step 16
Download Xcode on PC or Mac Step 16

Step 16. Open a multilevel Command Prompt window on the PC

Follow these steps to open it:

  • Type cmd into the search field on the taskbar.
  • Right click " Command Prompt ” in the search results.
  • Click " Run as administrator " A black window with a command line will be displayed.
Download Xcode on PC or Mac Step 17
Download Xcode on PC or Mac Step 17

Step 17. Run the following commands via Command Prompt

Execute the commands sequentially, but replace the directory address with the VirtualBox location, and “VM Name” with the virtual machine name:

  • Type cd "C:\Program Files\Oracle\VirtualBox\" and press Enter.
  • Type in VBoxManage.exe modifyvm "VM Name" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff and press Enter.
  • Type in VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11, 3" and press Enter.
  • Type in VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" and press Enter.
  • Type in VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" and press Enter.
  • Type in VBoxManage setextradata "VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" and press Enter.
  • Type in VBoxManage setextradata "VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 and press Enter.
Download Xcode on PC or Mac Step 18
Download Xcode on PC or Mac Step 18

Step 18. Reopen VirtualBox

You can also close the Command Prompt window if you want.

Download Xcode on PC or Mac Step 19
Download Xcode on PC or Mac Step 19

Step 19. Click Start

It's a green arrow icon in the upper-left corner of the app window.

Download Xcode on PC or Mac Step 20
Download Xcode on PC or Mac Step 20

Step 20. Set up your virtual Mac computer

Follow the on-screen instructions to set up High Sierra, just like when you set up a new computer. After that, sign in to your Apple ID when prompted. When finished, the virtual Mac will display the home screen.

Download Xcode on PC or Mac Step 21
Download Xcode on PC or Mac Step 21

Step 21. Open the App Store

Iphoneappstoreicon
Iphoneappstoreicon

It's in the Dock at the bottom of the screen.

Download Xcode on PC or Mac Step 22
Download Xcode on PC or Mac Step 22

Step 22. Search for Xcode

Type xcode into the search bar in the upper-right corner of the App Store window and press Enter.

Download Xcode on PC or Mac Step 23
Download Xcode on PC or Mac Step 23

Step 23. Click Xcode

This option is the first search result. Look for the blue App Store icon with the hammer.

Download Xcode on PC or Mac Step 24
Download Xcode on PC or Mac Step 24

Step 24. Click Get

If you weren't signed in to your Apple ID during the initial setup process, you'll need to sign in to your ID at this stage.

Download Xcode on PC or Mac Step 25
Download Xcode on PC or Mac Step 25

Step 25. Click Install

Xcode will be installed to the virtual Mac. Once done, the “Open” button will be displayed.

Download Xcode on PC or Mac Step 26
Download Xcode on PC or Mac Step 26

Step 26. Click Open to run Xcode

Download Xcode on PC or Mac Step 27
Download Xcode on PC or Mac Step 27

Step 27. Click Agree

It's in the lower-right corner of the license agreement pop-up window.

Download Xcode on PC or Mac Step 28
Download Xcode on PC or Mac Step 28

Step 28. Enter the Mac administrator password to continue

Xcode will install some additional features afterwards.

Download Xcode on PC or Mac Step 29
Download Xcode on PC or Mac Step 29

Step 29. Start a new project

  • If this is your first time using Xcode, select “ Get started with a playground ” to do the coding in the built-in “template” or environment.
  • To start the project from scratch, click “ Create a new Xcode project ”.
  • If you are prompted to enable developer mode on a Mac, click “ OK ”.

Method 2 of 2: On MacOS

Download Xcode on PC or Mac Step 30
Download Xcode on PC or Mac Step 30

Step 1. Open the App Store

Iphoneappstoreicon
Iphoneappstoreicon

The App Store icon is in the Dock, which is usually shown at the bottom of the screen.

Download Xcode on PC or Mac Step 31
Download Xcode on PC or Mac Step 31

Step 2. Type xcode into the search bar and press Return

A list of matching search results will be displayed.

Download Xcode on PC or Mac Step 32
Download Xcode on PC or Mac Step 32

Step 3. Click Xcode

This option is the first search result. Look for the blue App Store icon with the hammer.

Download Xcode on PC or Mac Step 33
Download Xcode on PC or Mac Step 33

Step 4. Click Get

Download Xcode on PC or Mac Step 34
Download Xcode on PC or Mac Step 34

Step 5. Click Install

Xcode will be downloaded and installed to the computer. After installation is complete, the “Install” button will change to an “Open” button.

Download Xcode on PC or Mac Step 35
Download Xcode on PC or Mac Step 35

Step 6. Click Open

Xcode will run after that.

Download Xcode on PC or Mac Step 36
Download Xcode on PC or Mac Step 36

Step 7. Click Agree

It's in the lower-right corner of the license agreement pop-up window.

Download Xcode on PC or Mac Step 37
Download Xcode on PC or Mac Step 37

Step 8. Enter the administrator password

Xcode will install additional components to the computer.

Download Xcode on PC or Mac Step 38
Download Xcode on PC or Mac Step 38

Step 9. Start a new project

  • If this is your first time using Xcode, select “ Get started with a playground ” to do the coding in the built-in “template” or environment.
  • To start the project from scratch, click “ Create a new Xcode project ”.
  • If you are prompted to enable developer mode on a Mac, click “ OK ”.

Recommended: