Prevent from asking external drive access permission
Hi,
I am using Visual Studio Code for compiling C++ into an external drive. The issue is that each time I compile and run, macOS asks for access to external drive permission for the executable just created.
Some notes:
- vscode has granted access to external drives.
- C# .Net build and run does not ask for external drive access permission.
- If, instead build and run, I compile, then open a terminal and run the executable manually, it does not ask for external drive access permission.
It's weird as if you want to build and run (or debug) directly is always asking for permission, and the executable (i.e. helloworld) is added to Privacy & Security files and folders list of programs, so think when we make, compile and run many different programs...
Is there some way to give the target folder permissions or extended attributes to prevent the system from asking access to external drive permission when accessing that folder?
Thanks.
Mac mini (M1, 2020)