shasum -a 256 ~/Downloads/Xcode_10.1.xip
: The Mac App Store typically only offers the latest Xcode, which will not work on High Sierra. You must download the specific Xcode 10.1 version manually. Access the Archive : Go to the Apple Developer Downloads download xcode for mac os high sierra 10136 work
Why? The xip command-line tool handles corruption better than the Archive Utility. Extraction will take 10–20 minutes depending on your drive speed. shasum -a 256 ~/Downloads/Xcode_10