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 non permanent executable binaries in my challenge’s debug output listing.
macOS routinely applies the com.apple.quarantine
prolonged attribute to those newly created binaries, seemingly as a result of they’re being generated by an utility that may have been downloaded. This ends in 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 current Stack Alternate reply: https://apple.stackexchange.com/a/436677/434175
Nonetheless, I am on the lookout for a technique 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 challenge 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 non permanent 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 helpful approaches throughout the VS Code ecosystem to streamline the debugging expertise on macOS and keep away from these quarantine prompts for regionally constructed binaries?
I am hoping to discover a resolution that integrates properly with the macOS VS Code workflow and avoids the necessity for handbook intervention every time I construct and debug.