Launch Terminal and then issue the following command:
xattr -cr /path/to/application.app
For example:
xattr -cr /Applications/Signal.app
The -c flag removes all attributes, whereas -r applies recursively for the entire targeted .app directory contents.
reference: https://www.cnblogs.com/chester-cs/p/13780730.html