This solution is especially if you're only getting this error for archiving. Click on Pods from the left navigator. For each problematic pod, Go to Signing and Capablities -> Release -> Make sure a valid team is selected for signing there.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: