Created
April 28, 2021 14:38
-
-
Save rafaelsm/a320185cf9781aad413bb47502cba4ad to your computer and use it in GitHub Desktop.
Fix Android emulator in macOS Big Sur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First create an xml file anywhere named entitlements.xml with this content: | |
``` | |
<?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> | |
``` | |
Then sign the qemu binary with it: | |
``` | |
codesign -s - --entitlements entitlements.xml --force /Users/rafaelsm/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 | |
``` | |
See: | |
https://www.arthurkoziel.com/qemu-on-macos-big-sur/ | |
https://stackoverflow.com/questions/64642062/apple-hypervisor-is-completely-broken-on-macos-big-sur-beta-11-0-1 | |
https://www.reddit.com/r/VFIO/comments/kdhgni/qemu_hvf_support_for_mac_os_x_bug_sur_hv_error/ | |
https://stackoverflow.com/questions/66455173/android-emulator-30-4-5-not-working-on-macos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment