Jump to the English version of this article!
Wer in Besitz einer relativ langsamen Internetverbindung ist und das – inzwischen mehr als 2 GB große – iOS SDK (iPhone SDK) downloaden möchte, würde sich freuen, wenn der Download zwischendurch pausiert und später wieder aufgenommen werden könnte. Unter Mac OS X konnte ich leider keinen Download-Manager finden, der die Entwicklungsumgebung aus dem iPhone Dev Center laden kann. Das gute, alte Wget lässt einen allerdings nicht im Stich…
- Wer noch nicht die MacPorts installiert hat, muss dies zuerst tun.
- Anschließend Wget im Terminal.app installieren:
sudo port install wget
- Firefox und die Add-Ons Firebug sowie Firecookie werden ebenfalls benötigt.
- Nun im iPhone Dev Center einloggen.
- Es ist wichtig den Download zum iOS SDK einmalig zu starten, damit die entsprechenden Cookies empfangen werden. Der Download kann danach direkt wieder abgebrochen werden.
- Nun in Firebug bzw. Firecookie alle Cookies exportieren. Ich habe diesen Pfad verwendet:
/home/username/Downloads/iPhoneSDK
- In Firecookie findet ihr außerdem einen Eintrag namens ADCDownloadAuth. Der RAW Data-Wert muss in den nachfolgenden Befehl an der Stelle xxx eingefügt werden.
- Wget im Terminal mit folgenden Parametern im oben genannten Verzeichnis starten:
wget --limit-rate=45k -U firefox -ct 0 --timeout=60 --waitretry=60 --load-cookies cookies.txt -c http://adcdownload.apple.com/ios/ios_sdk_4.0.1__final/xcode_3.2.3_and_ios_sdk_4.0.1.dmg --header="Cookie: ADCDownloadAuth=xxx"
Damit wird Xcode 3.2.3 und das iOS SDK 4 für Snow Leopard geladen. Der Wert von –limit-rate kann beliebig angepasst werden. 45k bedeuten in diesem Fall, dass der Download mit max. 45 KB/s stattfinden wird. -U setzt den User Agent auf Firefox. cookies.txt ist die exportierte Datei von Firecookie.
Wenn dir dieser Beitrag geholfen hat, bookmarke ihn doch und hinterlasse einen Kommentar! :-)
![]()
English:
How to download the iOS SDK (iPhone SDK) using Wget on Mac OS X:
- Get MacPorts and install Wget with the following command in your Terminal.app:
sudo port install wget
- Download Firefox and the Firebug and Firecookie add-ons.
- Login to the iPhone Dev Center
- Start the iOS SDK download once to get the cookies from Apple. You can cancel the download right after that.
- Export all cookies to a predefined path using Firecookie, e.g.:
/home/username/Downloads/iPhoneSDK
- In Firecookie you can find the ADCDownloadAuth entry. Replace the xxx at the end of the following command with the RAW Data value.
- Use your Terminal again and execute Wget in the upper path:
wget --limit-rate=45k -U firefox -ct 0 --timeout=60 --waitretry=60 --load-cookies cookies.txt -c http://adcdownload.apple.com/ios/ios_sdk_4.0.1__final/xcode_3.2.3_and_ios_sdk_4.0.1.dmg --header="Cookie: ADCDownloadAuth=xxx"
The command downloads Xcode 3.2.3 and iOS SDK 4 for Snow Leopard. –limit-rate=45k limits your transfer speed to 45 kb per second. -U changes the User Agent to Firefox. Firecookie’s exported file is cookies.txt.
If this post provides useful information, please share it and add a comment! :-)
![]()

Klasse und interessanter Beitrag