Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

apple error message when clicking on VSC app

"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.

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.

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

like image 203
Jennifer Espinoza Avatar asked Oct 10 '22 20:10

Jennifer Espinoza


People also ask

Can't be opened because Apple Cannot check?

Method 1: Change Security Settings Click on the Apple logo from the top left corner and go to System Preferences. Go to Security & Privacy from the following screen. Finally, select Open anyway located under Allow apps downloaded from the section. That's it.

How do I enable malicious software on Mac?

Go to Security & Privacy. Click the Open Anyway button in the General pane to confirm your intent to open or install the app. The warning prompt reappears, and if you're absolutely sure you want to open the app anyway, you can click Open.


2 Answers

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.

Please try the following:

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. Move the app to the Applications folder
  2. Open Terminal.app, then paste and execute the following command:

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

like image 314
Tzar Avatar answered Oct 18 '22 21:10

Tzar


If Right Click > Open doesn't open Visual Studio Code:

Another alternative can be simply navigating to System Preferences > Security & Privacy.

In the General tab, navigate and click Open Anyway button next to ("Visual Studio Code" was blocked from use because it is not from an identified source).

Security & Privacy

like image 47
Miko Avatar answered Oct 18 '22 21:10

Miko