问题描述
我已经下载了 Mac 版 VS Code,但我无法在我的 MacBook 上安装它.我收到以下错误:
I have downloaded VS Code for Mac, but I'm unable to install it on my MacBook. I get the following error:
以下是完整错误消息的截图:
Here is a sreen shot of the full error message:
如何获取VS Code以进行安装和运行?
推荐答案
问题是由于macOS要求Apple对应用进行公证的.解决此问题的最佳方法是简单地右键单击该应用程序,然后选择打开".如果这不起作用,请首先将应用程序移至应用程序"文件夹.然后打开终端并粘贴并执行以下命令:
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.
这篇关于无法安装Mac的VS Code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!