Notarization failed with message:"The signature of the binary is invalid."

This is the notarization log file:

{
  "logFormatVersion": 1,
  "jobId": "fe1e2423-71ee-4196-bc18-sdksjdksdkjjskjd",
  "status": "Invalid",
  "statusSummary": "Archive contains critical validation errors",
  "statusCode": 4000,
  "archiveFilename": "Mydmg.dmg",
  "uploadDate": "2022-07-02T11:22:10.345Z",
  "sha256": "bd5e138334847054cafb2d39fb55d843724fb5dd44b46d0eee05659d3bda130f",
  "ticketContents": null,
  "issues": [
    {
      "severity": "error",
      "code": null,
      "path": "Mydmg.dmg/Myapp.app/Contents/MacOS/Myapp",
      "message": "The signature of the binary is invalid.",
      "docUrl": null,
      "architecture": "x86_64"
  } 
 ]
}

I have signed every single file of the app, the signing process was successfully done and then tested as follow:

% codesign -vv dist/Myapp.app/Contents/MacOS/Myapp

dist/Myapp.app/Contents/MacOS/Myapp: valid on disk
dist/Myapp.app/Contents/MacOS/Myapp: satisfies its Designated Requirement
% codesign -vv "dist/Mydmg.dmg"

dist/Mydmg.dmg: valid on disk

dist/Mydmg.dmg: satisfies its Designated Requirement
  • Python3.10
  • Pyqt5-5.15.6
  • Pyinstaller 5.1

Pyinstaller puts some folders (like PyQt folder) and some (.dylib) files and other symlinks... inside MacOS folder with executables, could this be the source of the issue? if yes how to fix this?

Thank you

It’s hard to say what’s going on here without digging much further into the details. I recommend that you open a DTS tech support incident so that I can help you one-on-one.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Notarization failed with message:"The signature of the binary is invalid."
 
 
Q