In my case,
Xcode > Settings > Accounts
removing my current account with “-” and logging in again solved the problem.