I am creating on macOS and utilizing Visible Studio Code (VS Code) for debugging functions. After I run or debug my code, VS Code typically creates short-term executable binaries in my undertaking’s debug output listing.
macOS routinely applies the com.apple.quarantine
prolonged attribute to those newly created binaries, doubtless as a result of they’re being generated by an utility that may have been downloaded. This leads to the same old macOS safety immediate (“is an app downloaded from the web…”) the primary time I attempt to run or debug them after a contemporary construct.
I’m conscious that I can manually take away this attribute utilizing the terminal command:
xattr -d com.apple.quarantine /path/to/my/debug/binary
As seen on this present Stack Change reply: https://apple.stackexchange.com/a/436677/434175
Nevertheless, I am in search of a approach to automate this course of inside VS Code or whitelisting in some apple settings in order that I haven’t got to manually run this command each time a brand new debug binary is created inside these undertaking directories.
My questions are:
- Does VS Code have any built-in settings or options that may routinely deal with the removing of the
com.apple.quarantine
attribute for short-term debug binaries it generates on macOS? - Are there any particular VS Code duties or construct configurations that I can set as much as run a command (just like the
xattr
command) routinely after the construct course of for debug targets? - Are there any related VS Code extensions that may present this performance?
- Are there some other really useful approaches inside the VS Code ecosystem to streamline the debugging expertise on macOS and keep away from these quarantine prompts for domestically constructed binaries?
I am hoping to discover a answer that integrates properly with the macOS VS Code workflow and avoids the necessity for guide intervention every time I construct and debug.