#!/usr/bin/env ruby | |
print "What is the URL of your Apple Downloads resource?\nURL:" | |
url = gets.strip | |
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: " | |
token = gets.strip | |
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads" | |
exec(command) |
This comment has been minimized.
This comment has been minimized.
I think some MacOS versions broke file-allocation features. |
This comment has been minimized.
This comment has been minimized.
Great, for CN users especially |
This comment has been minimized.
This comment has been minimized.
Brilliant mate. |
This comment has been minimized.
This comment has been minimized.
what is ADCDownloadAuth ? how to get it? |
This comment has been minimized.
This comment has been minimized.
Hey @n0an there’s a write-up here: http://iandundas.com/blog/2017/2/21/script-for-reliably-and-quickly-downloading-xcode-on-a-poor-connection Hope it helps |
This comment has been minimized.
This comment has been minimized.
This works great!! |
This comment has been minimized.
This comment has been minimized.
I think this no longer works. It gives me a 403 even after providing a valid cookie. Maybe apple has changed the authentication? God knows why. |
This comment has been minimized.
This comment has been minimized.
I too am getting the 403... |
This comment has been minimized.
This comment has been minimized.
It's working for me... I followed the instructions in this fork and the script above works fine: https://gist.github.com/manishpathak99/2a18fce18493f460fe80f2bd542a8560 |
This comment has been minimized.
This comment has been minimized.
I had a 403, but managed to make it work by replacing |
This comment has been minimized.
This comment has been minimized.
I've created a macOS tool that you can use to download Xcode and other tools from developer.apple.com with up to 16 times faster (using the multi-connection download). Also, it has resume capability. You can use this if you want to avoid manual work. https://github.com/vineetchoudhary/Downloader-for-Apple-Developers |
This comment has been minimized.
This comment has been minimized.
Nice!! I will check it next time I download |
This comment has been minimized.
This comment has been minimized.
Saves lifes! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
I’m getting this `ERROR] CUID#7 - Download aborted. URI=https://developer.apple.com/download/more/ ` |
This comment has been minimized.
This comment has been minimized.
Hi all. Can anyone help us working through this? As of today, for Xcode 11.5 and with redesigned Apple Download pages, we keep on receiving 403. The cookie should be correct, we tried both straight from Developer Console, as well as with a Firefox Cookie Quick Manager extension, just to be sure: they report the same value, same characters. The download URL, as of today, looks like (taken from https://xcodereleases.com/): We tried with just |
This comment has been minimized.
This comment has been minimized.
Ok, found issue. Cookie was ok. URL taken from xcodereleases.com apparently was not working for the script. The right URL is the one taken from https://developer.apple.com/download/more/. It actually has the same structure as posted in the forked gist, so we made some errors before, while trying to make that URL up on our own. |
This comment has been minimized.
This comment has been minimized.
@vineetchoudhary Thanks. |
This comment has been minimized.
This comment has been minimized.
This is great, thanks a lot. |
This comment has been minimized.
This comment has been minimized.
Hey, Whats up guy if you are looking for a tool to download Xcode only check this out. |
This comment has been minimized.
This comment has been minimized.
Perfect, thank you much! Another fast method I have discovered is to retrieve the xip from the developer site, using a Safari browser and my iPhone's Personal Hotspot over Bluetooth. |
This comment has been minimized.
Awesome! It helps a lot.