You need to have at least 40GB with Catalina to download XCode although the app itself only takes up to 12GB. Even 39GB free space won't work, it has to be above 40GB.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: