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,<
Check the "purgeable" space of your APFS disk with Disk Utilities.. It seems Finder count this space in free space, but not App Store..
But you can trick macOS to clean up APFS by creating a huge garbage file, then deleting it.
To create the file I used the command:
dd if=/dev/zero of=~/hugefile bs=100m
letting dd run for about 30 seconds, then killing it with ctrl+c, and deleting the file:
rm ~/hugefile
Then App Store happily installed update..