1.官网上下载VirtualBox虚拟机并安装
2.下载macOS 10.12 地址:链接:https://pan.baidu.com/s/1LC9ONkAArO0c2SNKeP2LfQ
提取码:n68p
3.安装系统,先新建虚拟系统命名 为macOS10.12 已有的即下载下来的。

然后在Cmd中执行以下命令:
cd “C:\Program Files\Oracle\VirtualBox”
VBoxManage.exe modifyvm “macOS10.12” --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata “macOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
VBoxManage setextradata “macOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
VBoxManage setextradata “macOS10.12” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
VBoxManage setextradata “macOS10.12” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc”
VBoxManage setextradata “macOS10.12” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1
提示命令中的字符串"macOS10.12"是virtualBox中新建时取的系统名。
4.系统安装好后再安装Xcode8.0+Qt5.9.0(试装过Qt5.9.9提示要示10.13系统处版本)
该博客指导如何在Windows环境下利用VirtualBox安装macOS10.12系统,并详细列出了安装过程中需执行的CMD命令。安装完成后,还介绍了安装Xcode8.0及Qt5.9.0的步骤,特别指出Qt5.9.9需要更高版本的macOS。
4586

被折叠的 条评论
为什么被折叠?



