

Here is the code that you should copy on the notepad. Given that Xcode works only on macOS, a solution would be to install macOS on a Windows PC by means of a virtualization app such as VMware or VirtualBox.Our next step will be to add code to VirtualBox with Command Prompt. Now, that you are done with the settings on virtual box you can close it.Finally, head to Storage in the side pane and choose macOS 10.12 Sierra.vmdk under Attributes, set the Hard Diskto SATA Port 0.Now, navigate to Display and drag the slider in front of Video memory to 128 MB.Now click on the Motherboard tab and unselect Floppy and make sure that IHC9 is selected in dropdown.Here you will find three tabs click on the Drag slider in front of processor to 2 and make sure that Enable PAE/NX is enabled. Now click on the settings icon given at the top of the virtual box.

Again, you’ll see a lot of errors pop up during boot, but they’re fine ignore them. From now on, you can open VirtualBox for any Mac-related testing you want to do.
#Mac os for virtualbox mac os#
Choose “Use an existing virtual hard disk file” and click on the folder icon to choose the file on desktop from downloaded OS X Sierra to install Mac OS on VirtualBox. Start up VirtualBox, load up your virtual machine, and it should boot to your preferred resolution RELATED: 10 VirtualBox Tricks and Advanced Features You Should Know About. After making these entries click on Next.
