For me the issue was the execute bit. The com.apple.quarantine attribute causes the "blabla is an app downloaded from the internet. Are you sure you want to open it?" and it also checks code signing, developer id and notarization etc. "Cannot open this application" is either a missing execute bit or the binary in the MacOS subfolder being for an architecture macOS does not support on your machine :-)