Download the iOS/iPhone SDK using Wget → Jump to the English version of this article!
Wer in Besitz einer relativ langsamen Internetverbindung ist und das – inzwischen mehr als 4.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/Developer_Tools/xcode_4.0.2_and_ios_sdk_4.3/xcode_4.0.2_and_ios_sdk_4.3.dmg --header="Cookie: ADCDownloadAuth=xxx"
Damit wird Xcode 4.0.2 und das iOS SDK 4.3.2 für Snow Leopard (10.6.6) 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/Developer_Tools/xcode_4.0.2_and_ios_sdk_4.3/xcode_4.0.2_and_ios_sdk_4.3.dmg --header="Cookie: ADCDownloadAuth=xxx"
The command downloads Xcode 4.0.2 and iOS SDK 4.3.2 for Snow Leopard (10.6.6). –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! :-)
![]()
Archiv / Archive:
- iOS SDK 3.1 / Xcode 3.1 (Mac OS X 10.5.7):
http://adcdownload.apple.com/iphone/iphone_sdk_3.1__final/iphone_sdk_3.1_with_xcode_3.1_final__leopard__9m2809.dmg
- iOS SDK 3.1 / Xcode 3.2 (Mac OS X 10.6):
http://adcdownload.apple.com/iphone/iphone_sdk_3.1__final/iphone_sdk_3.1_with_xcode_3.2_final__snow_leopard__10a432.dmg
- iOS SDK 3.1.3 / Xcode 3.1.4 (Mac OS X 10.5.7):
http://adcdownload.apple.com/iphone/iphone_sdk_3.1.3__final/iphone_sdk_3.1.3_with_xcode_3.1.4__leopard__9m2809a.dmg
- iOS SDK 3.1.3 / Xcode 3.2.1 (Mac OS X 10.6):
http://adcdownload.apple.com/iphone/iphone_sdk_3.1.3__final/iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg
- iOS SDK 3.2 / Xcode 3.2.2 (Mac OS X 10.6):
http://adcdownload.apple.com/iphone/iphone_sdk_3.2__final/xcode_3.2.2_and_iphone_sdk_3.2_final.dmg
- iOS SDK 4 / Xcode 3.2.3 (Mac OS X 10.6.2):
http://adcdownload.apple.com/iphone/iphone_sdk_4__final/xcode_3.2.3_and_iphone_sdk_4__final.dmg
- iOS SDK 4.0.1 / Xcode 3.2.3 (Mac OS X 10.6.4):
http://adcdownload.apple.com/ios/ios_sdk_4.0.1__final/xcode_3.2.3_and_ios_sdk_4.0.1.dmg
- iOS SDK 4.0.2 / Xcode 3.2.3 (Mac OS X 10.6.4):
http://adcdownload.apple.com/ios/ios_sdk_4.0.2__final/xcode_3.2.3_and_ios_sdk_4.0.2.dmg
- iOS SDK 4.1 / Xcode 3.2.4 (Mac OS X 10.6.4):
http://adcdownload.apple.com/ios/ios_sdk_4.1__final/xcode_3.2.4_and_ios_sdk_4.1.dmg
- iOS SDK 4.2 / Xcode 3.2.5 (Mac OS X 10.6.4):
http://adcdownload.apple.com/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg
- iOS SDK 4.3 / Xcode 4 (Mac OS X 10.6.6):
http://adcdownload.apple.com/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg
- iOS SDK 4.3.1 / Xcode 4.0.1 (Mac OS X 10.6.6):
http://adcdownload.apple.com/Developer_Tools/xcode_4.0.1_and_ios_sdk_4.3/xcode_4.0.1_and_ios_sdk_4.3.dmg
