Error when notarazing an Electron app

I'm having issues signing my electron mac app. I'm trying to upload the pkg to MacStore, but I get rejected by them as the software appears to be done by an unknown developer. I have my Developer Id Certificate and everything (I guess) is required.

After building and notarizing my app (I received the confirmation from Apple that the notarizing was successful I get the following information when running those commands:

codesign -dvv dist/mas/app-1.1.9.pkg
Executable=/Users/user/Documents/Development/app/electron-app/dist/mas/App-1.1.9.pkg
Identifier=MyCompany-1
Format=generic
CodeDirectory v=20200 size=172 flags=0x10000(runtime) hashes=1+2 location=embedded
Signature size=9059
Authority=Developer ID Application: MyCompany Inc (xxxxxxxx)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=23 Dec 2021 09:43:58
Info.plist=not bound
TeamIdentifier=xxxxxxx
Sealed Resources=none
Internal requirements count=1 size=172


spctl -vvv --assess --type exec dist/mas/electron-app-1.1.9.pkg
dist/mas/electron-app-1.1.9.pkg: rejected
source=Unnotarized Developer ID
origin=Developer ID Application: MyCompany Inc (xxxxxx)

pkgutil --check-signature dist/mas/app-1.1.9.pkg
Package "app-1.1.9.pkg":
   Status: signed by a developer certificate issued by Apple (Development)



Certificate Chain:
    1. 3rd Party Mac Developer Installer: MyCompany Inc (xxxxxx)
       Expires: 2022-12-06 02:39:58 +0000
   
   ------------------------------------------------------------------------
2. Apple Worldwide Developer Relations Certification Authority
   Expires: 2030-02-20 00:00:00 +0000
   
   ------------------------------------------------------------------------
3. Apple Root CA
   Expires: 2035-02-09 21:40:36 +0000

Besides that, I'm able to upload the app through Transporter, but the Apple reviewer get the error saying that the developer is unknown.

Besides that, I'm able to upload the app through Transporter, but the Apple reviewer get the error saying that the developer is unknown.

So I understand a bit more; you are Developer ID signing and Notarizing your app for testing. Then, once testing is complete, you are re-signing the app with your Apple 3rd Party Developer Signing Identity and then trying to distribute via the Mac App Store, is that correct?

If so, check to make sure that you are re-signing your entire app with your 3rd Party Signing Identity for the Mac App Store. Also, make sure that you are not signing your app with entitlements such as com.apple.security.cs.disable-library-validation as these also can cause issues. Lastly, make sure that all signed code exists in a known code location inside your app and it does not exist at a random location that may not contain a valid code signature. For more on this, check the documentation here.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Error when notarazing an Electron app
 
 
Q