Here's the solution:
- Exit Xcode.
Run the following commands in Terminal:
mkdir ~/Library/Developer/Xcode/OldPortalDBs; mv
~/Library/Developer/Xcode/connect1.apple.com* ~/Library/Developer/Xcode/OldPortalDBsStart Xcode and try again!
For more details, see the official post on Apple Developer Forums.