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系统处版本)