26

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?

11
  • That's the correct location to get the download. Are you sure you have enough free space on your Mac and that your network connection is working?
    – fsb
    Commented Sep 15, 2016 at 21:08
  • Are you able to mount the .dmg file directly into Disk Utility?
    – OzzieSpin
    Commented Sep 15, 2016 at 21:10
  • Positive on both. It's not a great connection - but it's working. I would think there should be a way to resume a download too.
    – etayluz
    Commented Sep 15, 2016 at 21:10
  • 1
    How long does your download take? If your connection is really slow, then it might be that your session was closed, before the file finished downloading. So you could try to browse in the developer section form time to time while downloading to keep the session alive.
    – t.niese
    Commented Sep 16, 2016 at 9:15
  • 1
    I finally managed to download it late at night. I'm on a 6MBpS connection. It took 3 hours and 20 minutes. I also thought it was a session issue where I had to go back into the developer portal every hour. But there was no need for it. In any case, there should be a way to resume a paused download IMO.
    – etayluz
    Commented Sep 16, 2016 at 14:22

1 Answer 1

29

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.

5
  • 2
    Worked for me! The curl download progress stagnated towards the end, so I stopped the download (Ctrl-C) and ran the same command again but added -C - before the URL (curl -C - <URL from Chrome>) to resume from where the download was stopped. File now completely downloaded =)
    – CodeMonkey
    Commented Jun 1, 2017 at 7:47
  • 2
    Worked for me, eventually, when downloading Xcode 10.2.1. There were about six or eight interruptions before it finished though. I just kept hitting the up arrow in the terminal and setting it off again. Note though that these downloads are likely to be .xip files now. I'd appended "-o Xcode10.2.1.dmg -L -C - " to the command, but my Mac refused to recognise it as a .dmg file because (der) it isn't one! I simply changed the downloaded file's extension from .dmg to .xip, then double-clicked on it in Finder to start the extraction. Commented Jul 7, 2019 at 1:01
  • This doesn't seem to work anymore: curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. Commented Nov 26, 2019 at 9:30
  • Following these instructions exactly, I still get the same error shown in the question. With no download interruptions or continuations... It seems like the curl download still needs to be a xip file. The instructions show the filename as dmg several times, but like @ChillyPenguin said -I needed to change it to xip and then the dmg extraction worked, and so did the install
    – SeanMC
    Commented Jul 6, 2020 at 16:08
  • Can you elaborate how to resume the interrupted download? Commented May 11, 2022 at 10:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .