Does the Team ID on Apple Developer Portal need to match the one on Keychain?

Hello,

I was trying to solve the error "Command CodeSign failed with a nonzero exit code" that occurs when I try to archive and publish my app. I realized the Team IDs on the Portal (To right corner next to my name eg "Pete Park - ABC1D2E334") and my Mac Keychain Acces (eg "Pete Park - XYZ9W8V776") do not match.

  1. The number on KeyChain Access, is that's a Team ID. (clueless self learner here)
  2. If yes, do they need to match?
  3. Any suggestion for the CodeSign error? Is "errSecInternalComponent" the error?

Sorry if these questions are obvious or stupid. Thanks so much for any advice.

Does the Team ID on Apple Developer Portal need to match the one on Keychain?
 
 
Q