11

Download des iOS/iPhone SDK per Wget [4.3]

Verfasst am 11. November 2010 in der Kategorie Interessantes
Tags: , , , ,

Download the iOS/iPhone SDK using WgetJump 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…

  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/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! :-)

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/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! :-)

Bookmark and Share

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
  • jasondavid

    Klasse und interessanter Beitrag

  • http://scoobygalletas.blogspot.com Matías Herranz

    Thanks for that! It was incredibly helpfull!!

    Matías.-

  • ivorycuff

    Just wanted to take a second and say thank you.

  • Ruan

    very good thanks. amazing how it just worked. nice

  • sales computer

    Really good post!

  • Manu

    My downloads failed twice around 2.5GB. Now am using wget with your help! Much appreciated.

  • http://www.kylepoole.com Kyle Poole

    After a failed download at 2gb, I was trying to make this work, but I needed XCode installed first on a new Mac in order to install MacPorts or build the wget source. Talk about circular dependencies LOL! In the end, I used the Firefox download manager “DownloadThemAll!” which is better and easier than trying to export cookies and do command line wget’s ;)

  • http://www.dhohmann.de/ Dennis Hohmann

    Thanks for your comment! Well, I didn’t read the MacPorts documentation carefully. ;-) Does “DTA!” support resuming from Apple’s servers?

  • http://www.dhohmann.de/ Dennis Hohmann

    Thanks for your comment! Well, I didn’t read the MacPorts documentation carefully. ;-) Does “DTA!” support resuming from Apple’s servers?

  • Anonymous

    I don’t think that is the case, and I don’t really want to try as it is at 79% complete. :)nI’ll post later, when I try again from the start and let you all know.

  • Me

    nice link collection. kudos!

Schlagwörter → Anleitung Arzt CMS CNAME DNS Download Firewall Fotografie Fulda Google Apps Hautarzt HDRI Homöopathie HomAid iOS iPad iPhone iPod touch iTunes jQuery Korbach Logo Mac Medizin mobile Anwendung Netzwerk Programmierung Routenplaner SDK SEO Smartphone Suchmaschinenoptimierung TecSpace Unfall Urologe Webdesign Webseite Wget