Can’t be opened because apple cannot check it for malicious software. stackoverflow

The official issue for this is microsoft/vscode issue 74782 "Investigate: macOS notarization"

But, as noted in January 2020 iteration for VSCode 1.42:

Extremely disappointed to see that #74782 won't be fixed until early February.

[it was supposed to be possibly done for January]

First it was supposed to be fixed in November, then in December, and now it slips all the way to February.
This, for a feature [app notarization] first announced in 2018, for an operating system [Catalina] that has been available in beta for > six months and which went Gold in October, and which anyone who has purchased a new Mac since has no choice but to run.

Yes, I realize there is a workaround to install on macOS Catalina, but I don't want to install a non-hardened app. Every other app I've needed / wanted to install on my new Mac was hardened and notarized on a timely basis.

Edit: Feb. 2020, now that VSCode 1.42 has been released, vscode commit c196df9 from João Moreno is supposed to solve this issue; from PR 86588.
João adds:

Starting next week, insider builds should be properly notarized. ✔️

["insider builds" for the next 1.43 version]

VSCode 1.43 does mention:

Notarized macOS Builds

Visual Studio Code for macOS is finally notarized, so you should no longer see the following dialog:

Read the investigation issue and Apple's developer documentation for more details.

  • for older version of macOS

System Preferences -> Security & Privacy -> check Allow Anywhere

  • for macOS Sierra, High Sierra, Mojave

$ sudo spctl --master-disable

But if the Move To Trash issue still exists. This is because Apple has removed TNT certification. You may use codesign to resign it:

$ codesign --sign - --force --deep 
  • for macOS Catalina

I think codesign sometimes doesn't work for the notarization issue recently, so you should use xattr to remove the quarantine:

$ xattr -d com.apple.quarantine 

I have got a conclusion. When installing app from 3rd party on different macOS, you can try different ways when it comes up to Move to Trash issue. Meanwhile, I think this is a common issue for 3rd party apps, so you may change the title question to something that contains Cannot be opened or Move to trash as well.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Pick a username Email AddressPassword

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm running macOS 10.15 Catalina. When I try to install a program, I see the following error: 'visual studio code' can’t be opened because apple cannot check it for malicious software."

Occasionally, you will come across security messages like “Apple cannot check it for malicious software” when you try to launch an app on your Mac. If this happens for an app that you really need to use, it can cause trouble as the system will not let you use the app no matter what.

If you find yourself struggling with this message, this guide provides you with some tips on what you can do. You can follow one of these methods and your Mac will open any of your apps without displaying any messages of any kind.

  • Part 1. What Causes “Cannot be opened because Apple cannot check it for malicious software” Error
  • Part 2. How to Bypass “Apple cannot check it for malicious software” Error and Open Apps
  • Bonus Tip: How to Recover Lost or Deleted Data on Mac? Hot

Part 1. What Causes “Cannot be opened because Apple cannot check it for malicious software” Error

If you are seeing the “can’t be opened because Apple cannot check it for malicious software.” message for the first time, you will probably be wondering how it came up on your Mac all of a sudden.

In the new versions of macOS, Apple wants you to only use the apps that are authorized by Apple itself. All apps downloaded from the Mac App Store fall into the authorized category. However, when you install Mac apps, plug-ins, and installer packages from outside the App Store, macOS checks the Developer ID signature to verify that the software is from an identified developer and that it has not been altered.

If you see this warning, it means that the app was not notarized, your Mac throws the message that reads “cannot be opened because Apple cannot check it for malicious software”.

Part 2. How to Bypass “Apple cannot check it for malicious software” Error and Open Apps

Resolving the aforementioned issue is pretty easy. You can change a security option on your machine and that will allow all your apps to launch without any problems.

1. Change Your Security Preferences

One of the ways to get around the ““Visual Studio Code” can’t be opened because Apple cannot check it for malicious software.” issue is to allow your Mac to open any apps. This will bypass the security restrictions on your machine.

  • Click the Apple logo at the top-left corner of your screen and select System Preferences.
  • Click Security & Privacy on the following screen.
  • Select the Allow button under the Allow apps downloaded from section.

  • Launch your app and it will open without any messages.

2. Right Click App

Instead of double clicking on the app, you can actually right click and press Open to launch the app without having to see any security messages.

  • Find the app you have downloaded and right-click on it.
  • Select Open and then you will find the option to open the app regardless of any security warnings.

You can now use the app.

3. Remove the Quarantine Extended Attribute

Your downloaded apps have a certain attribute applied to them by your system. You can completely remove the attribute from your app by running the following command in the Terminal.

  • Launch the Terminal on your Mac.
  • Type the following command and hit Enter. Make sure to replace the path with your app’s path.

    xattr -d com.apple.quarantine /path/to/file

  • Close the Terminal and launch your app.

Bonus Tip: How to Recover Lost or Deleted Data on Mac?

When you use any technical methods on your Mac, like the Terminal one, there are chances that you may end-up corrupting or deleting your files. This often happens when you perform really complex procedures.

If you have already lost your files due to a method, you might want to recover those files. Luckily, Mac has a tool called Tenorshare 4DDiG for Mac Data Recovery that you can use to find and recover your files on your machine. This tool scans your machine for recoverable files and lets you pick the files that you want to restore on your Mac.

You can utilize this app as follows for recovering data from a Mac.

Buy Tenorshare 4DDiG with coupon code: 4DART30OFF to enjoy 30% OFF now!

  • Install and run the application on your Mac.
  • Select the drive where your data was stored and click Scan at the bottom.

  • You will see the list of files that can be recovered. Select the files you want to recover and click Recover at the bottom-right corner.

  • Choose the folder to save your recovered files and hit Recover.

That is all you need to do to recover any kind of files from your Mac machine.

How to Recover Deleted Files on Mac [Emptied Trash]

Summary

There are times when you may come across security messages like “can't be opened because Apple cannot check it for malicious software” on your Mac. When this happens, you have the aforementioned methods to fix the issue and to launch your apps without any obstacles. In case you lost your data, you can recover it using Tenorshare 4DDiG for Mac as mentioned above.

Can't be opened because Apple Cannot check it for malicious software Python?

Change Your Security Preferences Click the Apple logo at the top-left corner of your screen and select System Preferences. Click Security & Privacy on the following screen. Select the Allow button under the Allow apps downloaded from section. Launch your app and it will open without any messages.

How do I make my Mac detect malicious software?

Check Activity Monitor for Mac malware.
Open Activity Monitor from Applications > Utilities..
Go to the CPU tab, if you're not already in it..
Click the % CPU column to sort high to low, and look for high CPU use..
If you see a process that looks suspicious, do a Google search on it..

How do I trust an untrusted Mac application?

Control-click the app icon, then choose Open from the shortcut menu. Click Open. The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.

Chủ Đề