Before the 10.15 system, you only need to set all sources in Settings-Security and Privacy-General, refer to the link-mac settings all sources
But after upgrading to 10.15, it still cannot be opened after this setting. The solution is as follows:
Open the terminal, take cornerstone as an example, run the command
xattr -cr /Applications/cornerstone.app
It can be opened. If it is other software, just replace the cornerstone in the command.
Pay attention to the IT Aesthetics official account to get more knowledge