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 had the same problem (also a 120gb ssd), but 18gb is still not enough to install Xcode.
See this post: https://forums.developer.apple.com/thread/30235