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

Unable to upload your app for notarization. (-1011) #60

Closed Southclaws closed 11 months ago

Southclaws commented 2 years ago

I hit this and couldn't find many mentions of this exact error code on the internet. Fortunately, I solved it so I'm just posting an issue to benefit others who may be searching for the same code.

From what I could tell, this happens because multi-device authentication is enabled for my account, so logins via my primary email+password pair typically require a secondary device (iPhone etc) to validate the authentication.

Obviously machine authentication cannot do this and it doesn't make sense for a CI pipeline anyway. The solution is actually mentioned in the docs but the error code is different (maybe outdated? Apple doesn't document this stuff...)

What you want is an application specific password in place of AC_PASSWORD which is done via this button:

image

On the page https://appleid.apple.com/account/manage

Hope that helps someone spend fewer hours figuring it out than I did!

bdon commented 2 years ago

For anyone else searching for solutions to this problem:

I had an inactive Developer account and had to accept all the updated agreements in App Store Connect before my notarizations seemed to upload.