I\'m using the Mac OS to install the XCode10.1.
I have 18.43GB free disk space in the mac,
but when I click the install button on the Xcode from the app store,<
For me, I had an extra folder in my Macintosh HD/Volumes/ folder, Im not sure how it was created, but it was some sort of copy of my external harddrive. After deleting it, I was able to download xcode
Hope this helps