I had the same problem. I opened the file etc/hosts and commented all hosts. After rebooting Xcode is able to download new sdk.
etc/hosts