In my keychain I have my developer ID listed under "Name" as
Developer ID Installer: My Name (XXXXXX7RBW),
where I've replaced the first six digits with XXXXXX
I then built my package using
productbuild --sign 'Developer ID Installer: MyName (XXXXXX7RBW)' --component '/Users/Desktop/dist/main_app.app' /Applications /Users/Desktop/dist/main_app.pkg
The package appeared where it should, so I then proceeded to the signing:
productsign --sign 'Developer ID Installer: MyName (XXXXXX7RBW)' /Users/Desktop/dist/main_app.pkg /Users/Desktop/dist/main_app_signed.pkg
Everthing seemed to proceed smoothly, and I observed main_app_signed.pkg appeared where it should.
The uploading is where I'm a bit confused:
xcrun altool --notarize-app -f /Users/Desktop/dist/main_app_signed.pkg --primary-bundle-id XXXXXX7RBW -u myemail-p'@keychain:Developer ID Application: MyName (XXXXXX7RBW)'
I was then asked for my password. I assume this is my Apple developer's, which I entered. The error message stated,
"Unable to upload your app for notarization. Failed to get authorization for username 'myemail' and password."
What am I missing here?