Solution added for future readers...
I'm new to Electron and was struggling to figure out how to get past this error. I'm using Electron (24.0.0) Forge (6.1.1) on MacBook Pro (M1) Ventura and building for Mac App Store (electron-forge make --arch=universal --platform=mas). I had already done most of this, but here are all the steps:
Create certificates:
- Go to Xcode > Settings > Accounts
- Sign in to Apple ID for App Store Connect
- Click
+(bottom left of window) > select Apple ID > Continue - Go to Xcode > Settings > Accounts > select Apple ID > Team > Your Company > Manage Certificates
- Click
+(bottom left of window) > select Apple Distribution (code signing) - Click
+(bottom left of window) > select Mac Installer Distribution (package signing) - Right click each certificate > Export Certificate > enter password > click Save
Install certificates into keychain:
- Double click exported/saved certificate profile file (.p12 extension - requires file password)