I had the same issue, for me it helped to use "application password" generated on https://appleid.apple.com/account/manage instead of my main appleId password
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: