I uploaded a new binary of one of my macOS apps to iTunesConnect, but iTunes Connect is telling my that my app has an invalid signature.
It worked before in El Capitan, but I just recently upgraded to Sierra,
so I think that might be part of the problem. I've looked at some of the other StackOverflow questions, but none of them fix my problem.
iTunes Connect sent me an email telling me about the problem, but I don't know how to fix it.
Here's what the email said:
Invalid Signature - This error occurs when you have signed your app's installer incorrectly. There are two certs required for this process: the "3rd Party Mac Developer Application" cert and the "3rd Party Mac Developer Installer" cert. When signing your package, you need to ensure that you are using the Installer cert to sign your package. Ensure that you are specifying this cert when submitting your app via the Xcode Organizer or when running productbuild from the command line.
How can I fix this?
EDIT: The more I look around in Xcode trying to figure out what the problem might be, the more I'm confused. In Keychains, I have the correct certificates (I've even got several duplicates of the same certificate) but iTunes Connect is still telling me Invalid Signature. I'm not sure what's wrong.
I really want to get this problem fixed, so if more information is needed about the problem I'll be happy to provide more.