Xcode Slow Download



Download

Xcode Download Slow

Download Xcode using wget. Useful for slow or intermittent connections. it uses wget and mechanize.

I had the same issue downloading Xcode 7.2. The download was drastically slow compared to my internet download speed. Try this fix it worked for me: Go to the app store/ Updates and pause the download; Go to the app store/ Purchased and log in if you are not already logged in; Restart the download.

xcode.rb
require'rubygems'
require'mechanize'
ifARGV.size < 3
puts%q{Usage: ruby xcode.rb USERNAME PASSWORD 'DOWNLOAD_URL' [WGET_PARAMS]}
puts%q{Example: ruby xcode.rb myusername@apple.com 123456 'https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg' }
exit
end
a=Mechanize.new{ |agent|
agent.user_agent_alias='Mac Safari'
}
a.get('https://developer.apple.com/')do |page|
member_page=a.click(page.link_with(:text=>/Member Center/))
login=member_page.form_with(:name=>'appleConnectForm')do |form|
form.theAccountName=ARGV[0]
form.theAccountPW=ARGV[1]
end.submit
a.redirect_ok=false
download_page=a.get(ARGV[2])
system%Q{ wget #{download_page.response['location']} --header='Cookie: #{download_page.response['set-cookie']}' #{ARGV[3]}}
end
  1. Xcode 12 is built as a Universal app that runs 100% natively on Intel-based CPUs and Apple Silicon for great performance and a snappy interface. It also includes a unified macOS SDK that includes all the frameworks, compilers, debuggers, and other tools you need to build apps that run natively on Apple Silicon and the Intel x8664 CPU.
  2. IPhone Simulator suddenly started running very slow, Simulator so slow it's unusable after download xcode 10. At least 100 hours spent and 5 review processes later, it finally went through to the App Store! Windows 10 Running Slow all of a Sudden 'I've had this PC for about 1.5 years now, and it's always worked fine and fast.

commented Mar 10, 2011

I download xcode into my vps and then download to my machine. it's faster and I can resume easily.

could be useful for other large downloads from apple developer's center.

Xcode Slow Download Windows 10

commented May 3, 2011

commented Sep 9, 2015

Xcode Download Slow App Store

I am getting this error while running this script Thtf sound cards & media devices driver.

xcode.rb:17:in block (2 levels) in <main>': undefined methodtheAccountName=' for nil:NilClass (NoMethodError)
from (eval):23:in form_with' from xcode.rb:16:inblock in

'
from /var/lib/gems/2.1.0/gems/mechanize-2.7.3/lib/mechanize.rb:442:in get' from xcode.rb:14:in'
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

For faster connection speed and more flexibility.

Steps

  1. Start Xcode in command line by running this in commandline /Applications/Xcode.app/Contents/MacOS/Xcode
  2. Start downloading of the simulator
  3. Cancel it. YES CANCEL IT!
  4. You will get a message like this:2015-11-23 17:10:01.906 Xcode[30803:2505495] DVTDownloadable: Download Cancelled. Downloadable: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK8_3-8.3.1.1428621365.dmg.
  5. Quit Xcode
  6. Use your favorite download tool with the link in that message in step 3
  • This is what I use: (5 concurrent connection) aria2c -x 5 link_to_the_file
Xcode Slow Download
  1. Have Fun!

Wait! How can I install this?

By moving the file to ~/Library/Caches/com.apple.dt.Xcode/Downloads

  • You can use Finder by open ~/Library/Caches/com.apple.dt.Xcode/Downloads
  • Or just mv file ~/Library/Caches/com.apple.dt.Xcode/Downloads

And open the Downloads tab in Xcode's Preferences,

  • the progress bar of the item you just download should be 80% filled
  • you should be able to click that download button to install the file

Why did I need it?

Drivers sonix. I am in China right now and when downloading in Xcode(no concurrent downloading), the download speed sucks!I would like to use aria2 to speed up the downloading process of the simulator(s).

How slow was the connect using Xcode and how fast was it when using aria2?

  • Xcode: 150KB -> 300KB
  • aria2: 2.7MB (consistenly), which is the maximum downloading speed of my cable

Why aria2?

Xcode Slow Download Pc

  • Concurrent connections
  • Resuming unfinished downloads

References

Xcode 11 Download Slow

  • https://forums.developer.apple.com/message/51550#52580 where I found out ~/Library/Caches/com.apple.dt.Xcode/Downloads