I am trying to build my app into a mas file using electron on vscode so that I can share it to the app store.
I have bought the dev membership, have certificates setup, have key on my keychain. So I am confused on what I can do to fix this.
Here is a snipped of my build.json
"mac": {
"target": ["mas"],
"icon": "assets/icon.icns",
"category": "public.app-category.developer-tools",
"identity": {My name and teamid},
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mas.plist",
"entitlementsInherit": "build/entitlements.mas.plist",
"provisioningProfile": "build/MAS_Profile.provisionprofile"
}
Here is the full command that is failing
signing file=dist/mas-arm64/myApp.app platform=mas type=distribution identityName=3rd Party Mac Developer Application: name (teamid) identityHash= hash
provisioningProfile=build/Offcode_MAS_Profile.provisionprof
I am building using npm run build:mas
Please help! Let me know if more information is required.
Thanks
I tried deleting all certificates and removing keychains and then getting them again from apple dev website.
Also consulted articles such as https://www.dolthub.com/blog/2024-10-02-how-to-submit-an-electron-app-to-mac-app-store/ but they did not help with building the actual file.
Also consulted genai such as chatgpt, claude.
Read codesign fails with errSecInternalComponent: unable to build chain to self-signed root for signer
They were able to fix this issue by getting the certificates and downloading them. I got the certificates, double clicked on them, tried building my app, got same error. My keychain access only shows one certificate which has my name and team id. Here are the certificates I tried installing from https://www.apple.com/certificateauthority/: AppleWWDRCA2 AppleWWDRCA3 AppleWWDRCA4
The certificates are there with in tab Certificates on my keychain
