I've created .NET MAUI application in macOS, I've tried to sign it's bundle with Apple provided for me certificates with all steps mentioned in their site like this:
codesign --deep --force --sign "Developer ID Application: Developer_Certificate" TestApp.app
After that I've created the dmg file for creating install package like this:
create-dmg 'TestApp.app'
And signed the installer with certificate:
codesign --deep --force --sign "Developer ID Application: Installer_Certificate" TestApp.dmg
If I installing this app after this step everything is OK, but when I'm uploading it to the cloud storage, downloading it, installing to the macOS and trying to run I'm getting this error:
"TestApp" can't be opened because Apple cannot check it for malicious software
Can someone help me with this? I'll be very appreciated.
For those who met this similar issue when signing Apple certificates to .NET MAUI application, please take care of the signing process order.
The issue is related with the code sign process. We need to sign the external binaries in the bundle firstly and then so we can sign the application.