Tuesday, August 17, 2010

Adding resume support to iPhone SDK downloads

Checklist on how to enable resume in Apple downloads


1) Download and install Firefox (if it isn't already installed)

2) Download and install Firefox add-on "Cookie Exporter" 1.5 or higher from here:

https://addons.mozilla.org/en-US/firefox/addon/66579/

3) Goto Prefernces->Privacy and clean up all cookies

4)Login to your account at iPhone developer account at http://developer.apple.com (using Firefox with cookie exporter add-on already installed) and start the SDK download. Then cancel the download (yes, start the download and after it has started downloaded, cancel it). Also copy the download link.

5) Export the cookies via the installed add-on. Choose any file name for exported cookes, the default cookies.txt worked fine for me.

6)On terminal, type this (please note, I am limiting the bandwidth used to 10kBps. You can either drop the whole --limit-rate option and it will take up entire available bandwidth or choose some other bandwidth per your suitability.) :

wget --limit-rate=10k --tries=inf --server-response --continue --load-cookies cookies.txt https://developer.apple.com/iphone/download.action?path=%2Fios%2Fios_sdk_4.0.2__final%2Fxcode_3.2.3_and_ios_sdk_4.0.2.dmg

If it still complains about not being able to authenticate, use --no-check-certificate option as below

wget --limit-rate=10k --tries=inf --server-response --continue --load-cookies cookies.txt --no-check-certificate https://developer.apple.com/iphone/download.action?path=%2Fios%2Fios_sdk_4.0.2__final%2Fxcode_3.2.3_and_ios_sdk_4.0.2.dmg

If it still does not work, well its time to get a coconut or make a pilgrimage to Tirupati…. keep the Big Bro happy :)

No comments:

Post a Comment