I found out there was a bunch of apple hosts in /etc/hosts listed as 0.0.0.0
It looks like it happened after my Mac was removed from Apple Business Manager and wiped.
I removed those lines from /etc/hosts and download works fine after that.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: