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,<
Open finder: in menu above go to -> Go to folder:
~/Library/Developer/Xcode/
Delete old simulator files on:
~/Library/Developer/Xcode/iOS DeviceSupport/
Delete all files derived data on:
~/Library/Developer/Xcode/DerivedData
An easy way to accomplish these is by using DevCleaner for Xcode: https://apps.apple.com/us/app/devcleaner/id1388020431?mt=12