How to download Xcode or other developer tools in a resumable way

additional tools for xcode
xcode not downloading
xcode command line tools
xcode command line tools download
download xcode 10.2 stack overflow
aria2c download xcode
xcode slow download
command line developer tools

I have an unstable Internet connection and I need the download to be resumable. I tried using wget:

  1. Logged in to https://developer.apple.com/account
  2. Then went here https://developer.apple.com/download/more
  3. Copied the download link for Xcode 8 which is http://adcdownload.apple.com/Developer_Tools/Xcode_8/Xcode_8.xip
  4. I tried to $ wget http://adcdownload.apple.com/Developer_Tools/Xcode_8/Xcode_8.xip but I only got this on the terminal:

    --2016-09-21 15:13:17-- http://adcdownload.apple.com/Developer_Tools/Xcode_8/Xcode_8.xip Resolving adcdownload.apple.com... 203.177.38.83, 203.177.38.120 Connecting to adcdownload.apple.com|203.177.38.83|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://developer.apple.com/unauthorized/ [following] URL transformed to HTTPS due to an HSTS policy --2016-09-21 15:13:17-- https://developer.apple.com/unauthorized/ Resolving developer.apple.com... 17.146.1.15 Connecting to developer.apple.com|17.146.1.15|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2070 (2.0K) [text/html] Saving to: ‘Xcode_8.xip’

    Xcode_8.xip 100%[==================================>] 2.02K --.-KB/s in 0s

    2016-09-21 15:13:18 (85.8 MB/s) - ‘Xcode_8.xip’ saved [2070/2070]

Apple developer account downloads are tracked using browser cookies to check their validity and has the download is flaky and fails quite regularly especially on a slower internet connection. The way around is using wget but it fails by default because those cookies are missing. The solution is to export the cookies from a browser and then use them along with wget as follows.

For example downloading XCode 9 beta from developer account copy the XCode 9 download url and use wget as follows.

wget --load-cookies=cookies.txt -c https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_9_beta_6/Xcode_9_beta_6.xip

This should start downloading in the same directly as it is run and in case it cancels or fails because of flaky connection just run the same command again in the same directory as before and it should resume just fine.

There are a lot of different ways to export cookies from the browser. I use chrome browser and cookies.txt is a decent option. I in no way endorse this product and many other solutions in different browsers should work just as well. A quick google should help. NOTE: for some reason cookies.txt only works if I only export cookies for the developer.apple.com website and doesnt work if I export all cookies from browser.

Download Xcode and other Developer Tools up to 16 , Downloading Xcode from the Mac App Store or Apple Developer Website is very Resume download automatically if the download failed due to any reason. operated in command-line. aria2 provide a faster way to download other files. So, here a tool (Downloader for Apple Developer) that you can use to download Xcode and other tools from the Apple Developer Website up to 16 times faster (using the multi-connection download

To have the download resume when your connection drops, use Safari to download it. It correctly resumes downloads after the connection is restored and you click the orange "Resume downloading" icon next to the download.

I just tested this with Safari 11 to be certain, but I've used Safari's ability to resume downloads from Apple Developer for about 12 years now.

Download Xcode and other Developer Tools up , Download Xcode and other Developer Tools up to 16 times faster Resume download automatically if the download failed due to any reason. download utility operated in command-line. aria2 provide a faster way to download other files. Additional Downloads. Get the latest beta and older versions of Xcode. To view downloads, simply sign in with your Apple ID. Apple Developer Program membership is not required.

I was able to download the Xcode xip file in just 18 mins that would take 2-3 hours on the internet speed i have by following this blog link (credits to the author). Moreover, it resumed automatically after getting internet again. For simplifying i am listing the steps.

  1. Save the script mentioned at the link in a file (filename.rb)
  2. Run the script through terminal (ruby filename.rb)
  3. Get cookie from chrome -Open https://developer.apple.com/download/more/ -Open developer tools -> Cookies -> ADCDownloadAUTH -Copy this Cookie and pass this cookie in input (when script will ask) and URL URL:https://download.developer.apple.com/Developer_Tools/Xcode_10.2/Xcode_10.2.xip

Pausing and Resuming Downloads, Swift; Objective-C Allow the user to resume a download without starting over. fails, the session calls your urlSession(_:task:didCompleteWithError:) delegate method. resumeData = resumeData } // Perform any other error handling. }  Download Xcode, WWDC Videos, and other developer tools up to 16 times faster with this opensource tool. and API has way too much accumulated clutter and poorly

Script for reliably and quickly downloading Xcode on a poor , Script for reliably and quickly downloading Xcode on a poor I tried a few different Mac clients (Folx, iGetter etc), but unfortunately they weren't compatible with developer.apple.com 's CDN, I discovered I could use the command-line tool aria2c (also available from homebrew) to download reliably from  This new document describes how to use Xcode and other Apple developer tools to create and configure your project, request signing certificates, create provisioning profiles, configure special App Store technologies, test your app on devices, create your app record in iTunes Connect, and submit your app for approval to Apple.

Download older version of Xcode?, I would think there should be a way to resume a download too. open Google Chrome's Developer Tools ( alt cmd I ) > Network panel Stop the Xcode 7.3.1.​dmg download on Google Chrome's Downloads page or in the status bar resume previous downloads (i.e. download interrupted server-side). To download Xcode, simply sign in with your Apple ID. Apple Developer Program membership is not required. To learn about the latest features and capabilities in Xcode, see What’s New in Xcode .

michaeltyson/adc-download: A script to perform resumable , A script to perform resumable downloads from the Apple Developer Center Connect with others Anyone downloading the gazillion-gb iOS/Mac SDK + XCode on a slow https://developer.apple.com/devcenter/download.action?path​=/  1.2.2 The step-wise procedure to download Xcode for Windows- It is a complete package you need in order to build software or applications for Apple devices. Xcode is solely made for Mac OS and it is not available for Windows and other operating systems.

Comments
  • i want it to be resumable because i have an unstable connection.
  • Yes, You are use safari browser to download xcode 8....!!!
  • yep, i know that. but i want to use wget instead
  • mownier, did you find a way to download xcode with wget?
  • @subzero yes, i did. login first in to your developer account. copy the download link. then use the stored cookie used to authenticate your access on the download link. finally, use the wget command using a cookie flag argument.