سؤال

The package Apple provides to install the command line tools with Xcode 4.3 is corrupted, and I seem to need it because I'm developing some command line tools.

Has anybody found an alternative Command Line package for Xcode 4.3 from Apple that works or an workaround for the subject?

هل كانت مفيدة؟

المحلول 2

So, I found a way to do this correctly. The problem is really in one of the European mirrors from Apple.

The workaround is to:
- Install Tor: https://www.torproject.org/
- Choose a Tor node in the USA
- Logging into your Apple Developer account and download the package

It now opens correctly without any checksum warning.

نصائح أخرى

Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators.

enter image description here

I solved my own problem of downloading/installing Xcode 4.3.1 "Command Line Tools" by getting them directly from the developer's webpage. The March version yielded a checksum error just like the download from within Xcode 4.3.1, i.e. Xcode/Preferences/Downloads . But I did have success with the February version of CLT. I don't know why things were out-of-sync.

I had the same problem when trying to install the Command Line Tools from the Downloads tab in the XCode preferences (also downloading from Europe). I fixed it by clearing the dns cache on my system.

This is the Terminal command to clear the dns cache (OSX Lion):

dscacheutil -flushcache

Restart XCode after running this command, it may not fix the problem with the checksum until you do.

try: defaults write com.apple.frameworks.diskimages skip-verify -bool true

Just add another mirror for the download site:

Use the following to determine a valid ip: http://www.webmaster-toolkit.com/dns-query.shtml?address=adcdownload.apple.com

and add this to /etc/hosts:

adcdownload.apple.com

Example (ip might already have changed)

64.211.144.168 adcdownload.apple.com.

You can simply click skip while the disk image is verifying. I have installed from a dmg of CLT-4.3 with this problem and built an extensive amount of software with if successfully on my te

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top