

When you install the Xcode xip file you need to extract it.Important notes and the methodology used to uninstall Xcode from Mac: Faster install with xip and deleting previous Xcode first When copying the ADCDownloadAuth cookie make sure you copy the correct value, Safari adds all kinds stuff around it when you just use “copy value”.

Make sure you use the “More” site at even for downloading the latest version of Xcode. You will see a significant download speed improvement. This script downloads the given Xcode by URL from the Apple Developer Portal, but uses up to 16 separate connections to do so. Print "What is the ADCDownloadAuth cookie token: \n ADCDownloadAuth: " token = gets.stripĬommand = "aria2c -header \" Host: \" -header \" Accept: text/html,application/xhtml+xml,application/xml q=0.9,*/* q=0.8 \" -header \" Upgrade-Insecure-Requests: 1 \" -header \" Cookie: ADCDownloadAuth=# -d ~/Downloads" exec(command) Print "What is the URL of your Apple Downloads resource? \n URL:" url = gets.strip Install aria2 from Homebrew and uses this Ruby script from Ian Dundas: Faster download with aria2ĭownloading Xcode from the Apple Developer Portal is faster than using the Mac App Store, but it can be made even better. The place to go is the Apple Developer Portal where you can find all the Xcode versions, including the betas. Download from the Mac App Store is incredibly slow and sometimes not even available for days after release (like 11.2.1). You cannot use the Mac App Store to install multiple version of Xcode at the same time if you need them, like when testing with a Xcode beta for an upcoming iOS release. Installing Xcode from the Mac App Store might seem like a convenient way to do so but it is too slow and inflexible. Forget Mac App Store, use Apple Developer Portal There are multiple ways to do this so do not waste your time and use the fastest way possible. As an iOS developer you need to periodically update your Xcode, on your own machine and on your CI/CD server if you automate your development workflow.
