๊ฐœ๋ฐœ/Android

[Android Studio] MacOS Big Sur 11.3์—์„œ ์•ˆ๋“œ๋กœ์ด๋“œ ์—๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š์„ ๋•Œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

๋„๋ฆฌ ๐ŸŸ 2021. 5. 20. 11:41

์ตœ๊ทผ MacOS๋ฅผ Big Sur๋กœ ์—…๋ฐ์ดํŠธํ•˜๊ณ ๋‚˜์„œ ์•ˆ๋“œ๋กœ์ด๋“œ ์—๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ๋‹ค.
์ฐพ์•„๋ณด๋‹ˆ Android emulator ์ตœ์‹  ๋ฒ„์ „์—์„œ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค๊ณ  ํ•˜๋Š”๋ฐ, ์—…๋ฐ์ดํŠธ ํ›„์—๋„ ์—๋ฎฌ๋ ˆ์ดํ„ฐ๊ฐ€ ์‹คํ–‰๋˜์ง€ ์•Š์•„ ์•„๋ž˜ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๊ฒฐํ–ˆ๋‹ค.

์›์ธ์€ ์• ํ”Œ์ด hypervisor entitlement(๊ถŒํ•œ ๊ด€๋ จ?)๋ฅผ 'com.apple.vm.hypervisor'์—์„œ 'com.apple.security.hypervisor'๋กœ ๋ณ€๊ฒฝํ–ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋ผ๊ณ  ํ•œ๋‹ค.


1. 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>

2. ํ„ฐ๋ฏธ๋„์—์„œ ์•„๋ž˜ ์ปค๋งจ๋“œ ์‹คํ–‰

codesign -s - --entitlements entitlements.xml --force ~/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64