title: Xcode failed to download. Use the Purchases page to try again. Xcode 9.3. MacOS High Sierra
body: <p>After upgrading MacOS to High Sierra, I tried to update Xcode and get this:</p>
  
  <blockquote>
    <p>Xcode failed to download. Use the Purchases page to try again</p>
  </blockquote>
  
  <p>I uninstalled Xcode and try to install again with no success.</p>
  
  <p>I read some tips to solve this but nothing helps...</p>
  
  <ol>
  <li>Remove ~/Library/Cookies/com.apple.appstore.plist (no such file)</li>
  <li><p>Use AppStore Debug menu... (menu never appears with the command to enable it)</p>
  
  <p>defaults write com.apple.appstore ShowDebugMenu -bool true</p></li>
  <li><p>Remove contents of /private/var/folders/<em>/</em>/C/com.apple.appstore (folder located, contents removed, nothing changes)</p></li>
  <li>"wiping all caches, cookies amd such like" (how to do that?)</li>
  <li>Reset AppStore (uh?)</li>
  <li>LogOut, quit, restart Mac (done, no changes)</li>
  <li>Quit AppStore process and try again (done, no changes)</li>
  <li>Review payment options (done, no changes)</li>
  </ol>
  
  <p>Yes, the drive has enough space</p>