Posted on

virtualbox安装macOS Sierra开发环境

1.安装virtualbox
2.下载macOS 10.12 Sierra Final by TechReviews.vmdk
新建虚拟机,使用下载好的虚拟硬盘文件,内存选择4g以上,cpu选择2核,去掉软驱,显存设置为128mb。
使用管理员权限打开cmd,输入下面命令

cd “C:\Program Files\Oracle\VirtualBox\”
VBoxManage.exe modifyvm “MacOS” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata “MacOS” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
VBoxManage setextradata “MacOS” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
VBoxManage setextradata “MacOS” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
VBoxManage setextradata “MacOS” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”
VBoxManage setextradata “MacOS” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

然后启动虚拟机,开始安装系统