Remove all accounts from Xcode settings, then add your admin account that is a developer account you have been using. The error will disappear.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: