Unable to install VS Code for Mac

时光怂恿深爱的人放手 提交于 2021-02-08 11:32:31

问题


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:

Startup 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!