Closed bihellzin closed 1 year ago
I ran in to this issue as well and it turned out that I wasn't correctly specifying my certificate. You may want to try running
security find-identity -p codesigning -v
to see which certificates you have installed on your development machine, and if there's more than one, be sure you're providing the details for the correct identity.
If that's all looking fine, you may want to check to see if you've specified your entitlements. That would look something like
osxSign: {
identity: "Developer ID Application: xxx (xxx)",
hardenedRuntime : true,
gatekeeperAssess: false,
entitlements: "build/entitlements.mac.plist",
entitlementsInherit: "build/entitlements.mac.plist",
},
and your entitlements.mac.plist file at minimum will probably contain something like
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
</dict>
</plist>
Some additional helpful resources: https://til.simonwillison.net/electron/sign-notarize-electron-macos https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
The issue was really related to the certificates, not the notarize itself. I'm closing the issue.
@bihellzin hi, I ran the security find-identity -p codesigning -v
command, my certificate does not appear in the list, but when opening Keychain Access it is in Login/Certificate. In My Certificate it is not there, is the reason here?
The issue was really related to the certificates, not the notarize itself. I'm closing the issue.
Hi, I'm facing the same issue. Have you found the solution? Thanks!
I'm facing the error below when building and signing the application.
My packagerConfig value in
forge.config.js
looks like this.It looks like there's nothing missing from the configuration, my guess is that it could be related to certification/provisioning profile.