dart_emulators icon indicating copy to clipboard operation
dart_emulators copied to clipboard

[Bug] On Mac OS it throws ProcessException: Operation not permitted

Open biel-correa opened this issue 3 months ago • 2 comments

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.

biel-correa avatar Mar 23 '24 13:03 biel-correa

Found the solution, disable sandbox mode for macos at /<project>/macos/Runner/*.entitlements

biel-correa avatar Mar 24 '24 14:03 biel-correa

Repenning because the solution only worked while debuging

biel-correa avatar Apr 02 '24 23:04 biel-correa