1

Download des iPhone SDK per Wget [Update]

Verfasst am 26. Juni 2010 in der Kategorie Interessantes
Tags: , , , ,

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…

  1. Wer noch nicht die MacPorts installiert hat, muss dies zuerst tun.
  2. Anschließend Wget im Terminal.app installieren:
    sudo port install wget
  3. Firefox und die Add-Ons Firebug sowie Firecookie werden ebenfalls benötigt.
  4. Nun im iPhone Dev Center einloggen.
  5. 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.
  6. Nun in Firebug bzw. Firecookie alle Cookies exportieren. Ich habe diesen Pfad verwendet:
    /home/username/Downloads/iPhoneSDK
  7. 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.
  8. 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! :-)

Bookmark and Share


English:

How to download the iOS SDK (iPhone SDK) using Wget on Mac OS X:

  1. Get MacPorts and install Wget with the following command in your Terminal.app:
    sudo port install wget
  2. Download Firefox and the Firebug and Firecookie add-ons.
  3. Login to the iPhone Dev Center
  4. Start the iOS SDK download once to get the cookies from Apple. You can cancel the download right after that.
  5. Export all cookies to a predefined path using Firecookie, e.g.:
    /home/username/Downloads/iPhoneSDK
  6. In Firecookie you can find the ADCDownloadAuth entry. Replace the xxx at the end of the following command with the RAW Data value.
  7. 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! :-)

Bookmark and Share

Bisher ein Kommentar.

  1. jasondavid sagt:

    Klasse und interessanter Beitrag

Hinterlasse eine Antwort