校验和无效的 XCode 4.3 命令行工具包
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9348718/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
XCode 4.3 Command Line Tools Package with Invalid Checksum
提问by jbssm
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.
Apple 提供的用于使用 Xcode 4.3 安装命令行工具的软件包已损坏,我似乎需要它,因为我正在开发一些命令行工具。
Has anybody found an alternative Command Line package for Xcode 4.3 from Apple that works or an workaround for the subject?
有没有人从 Apple 找到适用于 Xcode 4.3 的替代命令行包,或者该主题的解决方法?
采纳答案by jbssm
So, I found a way to do this correctly. The problem is really in one of the European mirrors from Apple.
因此,我找到了一种正确执行此操作的方法。问题确实出在 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
解决方法是:
- 安装 Tor:https: //www.torproject.org/
- 在美国选择一个 Tor 节点
- 登录您的 Apple Developer 帐户并下载软件包
It now opens correctly without any checksum warning.
它现在可以正确打开,没有任何校验和警告。
回答by zaph
Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators.
Xcode 包含一个新的“下载”首选项窗格,用于安装可选组件,例如命令行工具和以前的 iOS 模拟器。
回答by jGo
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.
我通过直接从开发人员的网页获取它们解决了我自己的下载/安装 Xcode 4.3.1“命令行工具”问题。三月的版本产生了一个校验和错误,就像从 Xcode 4.3.1 中下载一样,即 Xcode/Preferences/Downloads 。但是我在 2 月版的 CLT 上确实取得了成功。我不知道为什么事情不同步。
回答by Heringe
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.
尝试从 XCode 首选项(也从欧洲下载)中的“下载”选项卡安装命令行工具时遇到了同样的问题。我通过清除系统上的 dns 缓存来修复它。
This is the Terminal command to clear the dns cache (OSX Lion):
这是清除 dns 缓存 (OSX Lion) 的终端命令:
dscacheutil -flushcache
Restart XCode after running this command, it may not fix the problem with the checksum until you do.
运行此命令后重新启动 XCode,它可能无法解决校验和问题,直到您这样做。
回答by nixpod
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
使用以下内容来确定有效的 ip:http: //www.webmaster-toolkit.com/dns-query.shtml?address= adcdownload.apple.com
and add this to /etc/hosts:
并将其添加到 /etc/hosts:
adcdownload.apple.com
adcdownload.apple.com
Example (ip might already have changed)
示例(ip 可能已经更改)
64.211.144.168 adcdownload.apple.com.
64.211.144.168 adcdownload.apple.com。
回答by javar
try: defaults write com.apple.frameworks.diskimages skip-verify -bool true
尝试:默认写入 com.apple.frameworks.diskimages skip-verify -bool true
回答by wjwwood
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
您只需在验证磁盘映像时单击跳过即可。我已经从 CLT-4.3 的 dmg 安装了这个问题,并在我的 te 上成功构建了大量软件