dart_emulators
dart_emulators copied to clipboard
[Bug] On Mac OS it throws ProcessException: Operation not permitted
Platform: Mac OS M2 Sonoma 14.4
I was runnig the command await _emulators!.toolchain.emulator(['-list-avds']).string()
and got the error ProcessException (ProcessException: Operation not permitted Command: /<sdk-path>/Android/sdk/emulator/emulator -list-avds)
. I also tried runnig as release build to check if it would request for any permission but the app just crashed.
Found the solution, disable sandbox mode for macos at /<project>/macos/Runner/*.entitlements
Repenning because the solution only worked while debuging