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,<
I solved it by upgrading MacOS as I'd have an old version installed. After a restart it magically had space :D (the same by the way)