Skip to content

Instantly share code, notes, and snippets.

@brionmario
Last active January 30, 2019 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brionmario/98c145af927ea42820fa66fd716e8971 to your computer and use it in GitHub Desktop.
Save brionmario/98c145af927ea42820fa66fd716e8971 to your computer and use it in GitHub Desktop.
STEPS
1. Download wget
brew install wget
2. Download a cookie exporter extension for the browser
For Chrome - https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?hl=en
For Firefox - https://addons.mozilla.org/en-US/firefox/addon/cookie-exporter/
3. Download Xcode from Apple developer website
https://developer.apple.com/download/
INSTRUCTIONS
Login to Apple Developer website using browser and start downloading the required xcode version (you will be
redirected to the app store) file normally.
On the download page press the cookie exporter extension and save the cookie.txt in Download Folder (choose any location you like).
Now you can stop the download on the app store.
Open Terminal and change directory to downloads folder or whatever the folder you saved the cookies.txt file.
Execute the following command( NOTE: Change the version accordingly)
wget --load-cookies=cookies.txt -c http://adcdownload.apple.com/Developer_Tools/Xcode_10.1/Xcode_10.1.dmg
Thats all, download will start and if it interrupts wget will try to resume on its own. You can stop and resume download too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment