I hit this same situation. (Xcode iPhone SE2 iOS 13.5)
I just do: remove signing account and run the tests, let it show the ' signing for ...' error, and re-choose the account to sign.
And fix it
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: