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,
it's always show the "Not enough storage disk space, you can't install the product" alert message.
How to fix the problem in the MacOS Mojave(10.14.1)?
Thank you very much.
What you can also do is manually download Xcode and install it. (Without using the app store update) Therefor do the following steps:
See also this post here: https://discussions.apple.com/thread/8622103?answerId=250008933022#250008933022