Download older version of Xcode?

I upgraded to Xcode 8 and now I really regret it. I'm trying to download Xcode 7.3.1 here: https://developer.apple.com/download/more/

It is a 4.8 GB file.

After three attempts - the download appears to finish around the 1-2 GB mark - and then I can't open or resume the download:

enter image description here

How do I download this without the download being disrupted? Is there another place to download older version of Xcode?


Solution 1:

Try Google Chrome and curl:

  • Open Terminal
  • Open Google Chrome and go to Developer Apple downloads.
  • Scroll down to Xcode 7.3.1 and click the + sign.

    enter image description here

  • open Google Chrome's Developer Tools (altcmdI) > Network panel
  • Click on Xcode 7.3.1.dmg to start the Xcode download
  • Right-click Xcode 7.3.1.dmg in the network panel > Copy as cURL

    enter image description here

  • Stop the Xcode 7.3.1.dmg download on Google Chrome's Downloads page or in the status bar
  • Paste the content of the pasteboard to the Terminal window with cmdV and add -o Xcode7.3.1.dmg. Then hit the enter key.

    Example:

    curl 'http://adcdownload.apple.com/Developer_Tools/Xcode_7.3.1/Xcode_7.3.1.dmg' -H 'Accept-Encoding: gzip, deflate, ... <redacted> ...; as_dc=nwk; ADCDownloadAuth=<redacted>' -H 'Connection: keep-alive' --compressed -o Xcode7.3.1.dmg
    

    If you add additionally -L -C - at the end (after the suggested -o Xcode7.3.1.dmg), you can resume previous downloads (i.e. download interrupted server-side).

I hope this works for you.