After upgrading MacOS to High Sierra, I tried to update Xcode and get this:
Xcode failed to download. Use the Purchases page to try again