无法打开Visual Studio代码,因为"Apple无法检查它是否包含恶意软件". [英] Visual Studio Code can't be opened because "Apple cannot check it for malicious software"

查看:674
本文介绍了无法打开Visual Studio代码,因为"Apple无法检查它是否包含恶意软件".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次下载Visual Studio Code,但我一直在下面收到消息:

I have downloaded Visual Studio Code for the first time but I keep getting message below:

无法打开"Visual Studio代码",因为Apple无法检查它是否包含恶意软件.

"Visual Studio Code" can't be opened because Apple cannot check it for malicious software.

此软件需要更新.请与开发人员联系以获取更多信息.

This software needs to be updated. Contact the developer for more information.

我的MacBook是最新的,我什至在他们的网站上更新了最新版本的VSC(2019年9月(1.39版); 10月没有更新),但它仍然给我同样的信息.

My MacBook is up to date, and I even updated the latest version of VSC on their website (September 2019 (version 1.39); there is none for October) but it still gave me the same message.

查看他们的常见问题,我了解了有关重新安装VS Code的信息.我做到了,但仍然行不通.

Looking into their FAQ, I read about reinstalling VS Code. I did that but it still doesn't work.

推荐答案

macOS Catalina要求应用经过Apple的公证. Microsoft尚未针对新的操作系统更新您的Visual Studio Code版本.

macOS Catalina requires apps to be notarized by Apple. Your version of Visual Studio Code is yet to be updated by Microsoft for the new OS.

请尝试以下操作:

右键单击该应用,然后选择打开.

Right-click on the app and select Open.

如果这不起作用,请删除在应用程序上设置的隔离扩展属性:

If this did not work, remove the quarantine extended attribute that’s set on the app:

  1. 将应用程序移至应用程序"文件夹
  2. 打开Terminal.app,然后粘贴并执行以下命令:

xattr -d com.apple.quarantine /Applications/Visual\ Studio\ Code.app

这篇关于无法打开Visual Studio代码,因为"Apple无法检查它是否包含恶意软件".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆