问题
I have downloaded VS Code for Mac, but I'm unable to install it on my MacBook. I get the following error:
"Visual Studio Code - Insiders" can't be opened because Apple cannot check it for malicious software.
Here is a sreen shot of the full error message:
How can I get VS Code to install and run?
回答1:
The problem is caused by macOS requiring apps to be notarized by Apple. The best way around this problem is to simply right-click on the app and select Open. If this doesnt work, first move the app to the Applications folder. Then open Terminal and paste and execute the following command:
xattr -d com.apple.quarantine /Applications/Visual\ Studio\ Code.app
This should remove the quarantine on the app and allow you to run it.
来源:https://stackoverflow.com/questions/59314178/unable-to-install-vs-code-for-mac