Notarize dmg failed

Hi,


I'm using macOS 10.15.5 to distribute an Electron App. But i got problem when notarizing dmg file.

First i sign and notarize file.app and it was okay. I used electron-osx-sign to sign and xcrun to notarize app.

Next, i created pkg file using packages. Then i create dmg file using hdiutil.

After that, i signed dmg file using codesign. The file was signed okay. Finally, i notarize it and i got invalid status.


Here is the image:


The binary that located in app file was sign and notarized successfuly. But it's get error "The signature of the binary is invalid."

Please help me to understand this.


Thanks,

First i sign and notarize file.app and it was okay.

FYI, in most situations you don’t need to notarise your app separately. Our general advice is that you notarise the outermost container, which in this case is your disk image.

For this and other tips, see my Signing a Mac Product For Distribution post.

With regards your disk image problem, my experience is that when the notary service complains about an invalid signature it generally has a good reason. Try doing this:

  1. Mount your disk image.

  2. Run the following command against your app on that image:

    % codesign -v -vvv /Volumes/MyVolumeName/MyAppName.app

    .

What do you see?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank eskimo, This helped me. 🙂

Notarize dmg failed
 
 
Q