When notarizing an application on macOS, the following type of error may be encountered:
{
"severity": "error",
"code": null,
"path": “myApp.zip/myApp.app/Contents/MacOS/myApp”,
"message": "The signature of the binary is invalid.",
"docUrl": null,
"architecture": "x86_64"
}
Verifying the app signature in CLI with codesign and/or spctl, the following error may be received:
invalid Info.plist (plist or signature have been modified)
The above combination of errors may indicate that there is an issue with the Apple signing certificate. Check that the developer certificate being used to sign the application has a valid private key attached in Keychain Access. If it is missing, try generating a new certificate or contact Apple Developer Support.