mitchellh / gon

Sign, notarize, and package macOS CLI tools and applications written in any language. Available as both a CLI and a Go library.
MIT License
1.47k stars 96 forks source link

Not yet accepted PLA results in error: failed to decode notarization submission output: plist: error parsing text property list: missing = in dictionary at line 1 character 1 #50

Open stapelberg opened 3 years ago

stapelberg commented 3 years ago

I’m using gon via goreleaser and got the following output:

      • running hook              hook=gon gon.hcl
      • ==> ✏️  Signing files...
 cmd=[gon gon.hcl]
      •     Code signing successful
==> 📦  Creating dmg...
 cmd=[gon gon.hcl]
      •     This will open Finder windows momentarily.
 cmd=[gon gon.hcl]
      •     Dmg file created: ./dist/qrbill_api_Darwin_x86_64.dmg
    Signing dmg...
 cmd=[gon gon.hcl]
      •     Dmg created and signed
==> 🍎  Notarizing...
 cmd=[gon gon.hcl]
      •     Path: ./dist/qrbill_api_Darwin_x86_64.dmg
    Submitting file for notarization...
 cmd=[gon gon.hcl]
      •     Error notarizing
     cmd=[gon gon.hcl]
      • 
❗️ Error notarizing:

1 error occurred:
    * failed to decode notarization submission output: plist: error parsing text property list: missing = in dictionary at line 1 character 1

The solution was to log into https://developer.apple.com/account/ in a browser and agree to the updated PLA terms.

I was able to diagnose this in Xcode -> Accounts -> Manage Certificates, where Xcode showed an error message about having to agree to the updated PLA.

Perhaps gon could show a similar error message in this situation?

EduardoRT commented 2 years ago

I'm getting the same error, but I don't see the agreement you're talking about, so this solution might not work for every case.