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 not the prettiest solution, but I simply open Applications folder in Finder and drag Xcode to the bin, and delete it! :D
Then open App Store, find Xcode and install it again.
This still allows future updates from App Store. I have done this already multiple times over the last 6 years, especially for major version updates, as this always ended up being the simplest solution for me when I encounter such issues. This way you are not required to tamper with Developer folder data, unless you want to do some cleanup.
p.s. I found no harmful effects of this approach on my projects.