Mac os 升级到11.3后,启动android虚拟机,报failed to initialize HVF: Invalid argument
处理步骤:
1、登录terminal,去到目录
~/Library/Android/sdk/emulator/qemu/darwin-x86_64)
2、创建文件entitlements.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
3、执行下面的命令,签名
codesign -s - --entitlements entitlements.xml --force ./qemu-system-x86_64
3步骤如果执行不成功,尝试检测有没有安装xcode command line
sudo xcode-select --install
参考链接:stackoverflow.com/questions/6… Run QEMU on macOS 11.0 Big Sur