fixes #15774.
Adds runtime hardening (which is necessary for macOS app notarization) https://developer.apple.com/documentation/security/hardened_runtime
Notarization doc: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution
Hardened Runtime doc: https://developer.apple.com/documentation/security/hardened_runtime
App Notarization has been tested here and here
Additional release process notes are included.
Needs backport.