Closed MelvilQ closed 10 months ago
Does your Mac use mac intel or apple silicon? Just a thought.
CPU: 3.1 GHz Quad-Core Intel Core i7 macOS: Ventura 13.3.1 (a) Xcode: 14.3.1 (14E300c)
I tried to add
"target": {
"target": "default",
"arch": [
"x64",
"arm64"
]
},
and also
"target": {
"target": "default",
"arch": "universal"
},
to the config in package.json, but it didn't change anything.
This is unrelated to electron-builder code. Either open a debugging ticket with electron/osx-sign
package or potentially debug your certificates further. I'm unable to assist with that though as it's very finicky of a process
@MelvilQ - having the same issue.
OS: Mac M1 Pro (Sonoma 14.5)
{
"logFormatVersion": 1,
"jobId": "841950b2-52da-4cbb-b5b6-d9aacefa2d70",
"status": "Invalid",
"statusSummary": "Archive contains critical validation errors",
"statusCode": 4000,
"archiveFilename": "Deep Focus.zip",
"uploadDate": "2024-10-17T23:26:50.540Z",
"sha256": "2c3772f545523403b7f63e563001359bc3115213cbe748d3a222d9dfe0f1de2e",
"ticketContents": null,
"issues": [
{
"severity": "error",
"code": null,
"path": "Deep Focus.zip/Deep Focus.app/Contents/MacOS/Deep Focus",
"message": "The signature of the binary is invalid.",
"docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",
"architecture": "arm64"
},
{
"severity": "error",
"code": null,
"path": "Deep Focus.zip/Deep Focus.app/Contents/Frameworks/Electron Framework.framework/Electron Framework",
"message": "The signature of the binary is invalid.",
"docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",
"architecture": "arm64"
},
{
"severity": "error",
"code": null,
"path": "Deep Focus.zip/Deep Focus.app/Contents/Frameworks/ReactiveObjC.framework/ReactiveObjC",
"message": "The signature of the binary is invalid.",
"docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",
"architecture": "arm64"
},
{
"severity": "error",
"code": null,
"path": "Deep Focus.zip/Deep Focus.app/Contents/Frameworks/Squirrel.framework/Squirrel",
"message": "The signature of the binary is invalid.",
"docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",
"architecture": "arm64"
},
{
"severity": "error",
"code": null,
"path": "Deep Focus.zip/Deep Focus.app/Contents/Frameworks/Mantle.framework/Mantle",
"message": "The signature of the binary is invalid.",
"docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",
"architecture": "arm64"
}
]
}
I am trying to build, sign and notarize my electron application for MacOS, but it fails:
• electron-builder version=24.9.1 os=22.4.0 • loaded configuration file=package.json ("build" field) • packaging platform=darwin arch=x64 electron=28.0.0 appOutDir=dist/mac • signing file=dist/mac/xxx.app identityName=Apple Distribution: xxx GmbH & Co. KG (xxx) identityHash=CD372DD80E5878CA24D9FE8BD2BB124A2ED99799 provisioningProfile=build/Developer_ID.provisionprofile x Failed to staple your application with code: 65
My package.json looks like this:
entitlements.mac-plist:
I would say that my setup is pretty standard, so I expected it to work out of the box... but the notarization log is full of errors.
xcrun notarytool log
:It looks like the code signing does not work as intended but there is no error during the signing process. I am using a certificate of type Developer_ID for code signing.
Any idea what else I could check to get it working?