Cover image for blog post: "Direct download any Xcode"
Back to blog posts

Direct download any Xcode

Tired of interrupted Xcode downloads? Resume them seamlessly with a quick trick

Published onOctober 27, 20182 minutes read

Table of Contents

Downloading Xcode from the App Store, or even the .xip file while using a browser, regardless of which one it is, can be a pain when your connection is not as stable and fast as others’ and when the download can be interrupted at any time and you’re most likely going to have to restart the whole download.

This just happened to me and I’m writing this as a note-to-self but also to share this with others who might be facing a similar situation.

Here’s what I did to download it…

Install Xcode Command Line Tools

It is a small package of ~183Mb which I think it’s enough to be downloaded via your browser.

Install Homebrew and wget

I used Homebrew to install wget. There might be another way, but this is how I did it. 😅

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget

Install and get cookies.txt from your browser

Start download

wget --load-cookies=cookies.txt -c https://download.developer.apple.com/Developer_Tools/Xcode_10/Xcode_10.xip

Notes:

Install Xcode

Hope you find this useful and please don’t forget to share it with others!

Cover image is from unsplash.com