Files not opening in macOS Catalina

All the files are saying:

XXX is damaged and can’t be opened. You should move it to the Bin.

Most of the files are not opening in macOS Catalina 10.15. I have tried to right click, disable the app protect. All are not working.

The zip and dmg file is coming from website, and Google Chrome installation media. Purely official. The PNG and pdf is created by the macOS itself. It even won't open.

zip file

dmg file

PNG file


Solution 1:

Not sure about Catalina but on newer OSes (Big Sur and Monterey) there may be a quarantine extended attribute set on files and apps. To remove this use sudo xattr -rc /path/to/file_or_app but only do this if you are sure the file/app is trusted and safe.