无法在 Mac OS X Yosemite 上下载 XCode 6.1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27073615/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:14:25  来源:igfitidea点击:

Trouble downloading XCode 6.1 on Mac OS X Yosemite

xcodemacososx-yosemite

提问by nonsensickle

after upgrading my Mac to Yosemite I've had trouble downloading XCode 6.1

将 Mac 升级到 Yosemite 后,我无法下载 XCode 6.1

Every time I tried I got an error saying:

每次我尝试时,我都会收到一条错误消息:

This item is temporarily unavailable. Try again later.

I have tried again later, for a couple days, with no luck.

我后来又试了几天,没有运气。

I have found this Apple forum postreally helpful, but I did not want to download the third party tools.

我发现这篇 Apple 论坛帖子真的很有帮助,但我不想下载第三方工具。

I have solved the problem by searching for XCode:

我已经通过搜索 XCode 解决了这个问题:

sudo find / -name *XCode*

Which returned:

哪个返回:

/private/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/CachedSpecifications-xcodebuild
/private/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/com.apple.DeveloperTools/5.1-5B130a/Xcode/CachedSpecifications-xcodebuild
/private/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/com.apple.DeveloperTools/5.1.1-5B1008/Xcode/CachedSpecifications-xcodebuild
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/CachedSpecifications-xcodebuild
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.1-5B130a/Xcode/CachedSpecifications-xcodebuild
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.1.1-5B1008/Xcode/CachedSpecifications-xcodebuild

By renaming all of the com.apple.DeveloperToolsfolders/files above to aaacom.apple.DeveloperToolsI have managed to get my App Store to download the new XCode.

通过将上面的所有com.apple.DeveloperTools文件夹/文件重命名为aaacom.apple.DeveloperTools我已经设法让我的 App Store 下载新的 XCode。

What I wanted to ask was, has Yosemite changed the way that the Mac cache works?

我想问的是,优胜美地是否改变了 Mac 缓存的工作方式?

I ask this because I noticed that some people had not managed to fix the issue by removing the usually recommended folder named com.apple.appstore. I can't say if this would/would not work since this is the first thing I tried so I'm asking if the Mac cache has changed, and if so in what way?

我问这个是因为我注意到有些人没有通过删除通常推荐的名为com.apple.appstore. 我不能说这是否会/不会起作用,因为这是我尝试的第一件事,所以我问 Mac 缓存是否已更改,如果是,以何种方式更改?

Edit 1:

编辑1:

I have only now noticed the really useful command that was posted by Elliott Slaughter in the same threadwhich is a slightly more general cache deletion than my command:

我现在才注意到 Elliott Slaughter在同一线程中发布的真正有用的命令,它比我的命令更通用的缓存删除:

rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/com.apple.appstore"

Where on my machine:

在我的机器上的位置:

...$ echo $(getconf DARWIN_USER_CACHE_DIR)
/var/folders/zn/ltz89cf17wj09s3bz6rnrwyc0000gn/C/

Edit 2:

编辑2:

So my assumption is that deleting com.apple.appstorewouldn't work because XCode seems to be referenced in the com.apple.DeveloperToolsfolders. Am I right?

所以我的假设是删除com.apple.appstore不起作用,因为 XCode 似乎在com.apple.DeveloperTools文件夹中被引用。我对吗?

回答by TMin

I was dealing with this same problem, but I have not yet updated to Yosemite (Still on Mavericks).

我正在处理同样的问题,但我还没有更新到优胜美地(仍在小牛队)。

To be specific my problem was I started to download Xcode 6.1.1, and then paused it, or got disconnected for some reason (I don't remember), and then could not download the app for days. From that point forward I received the error message.

具体来说,我的问题是我开始下载 Xcode 6.1.1,然后暂停它,或者由于某种原因断开连接(我不记得了),然后几天都无法下载该应用程序。从那时起,我收到了错误消息。

This item is temporarily unavailable. Try again later.

此项目暂时不可用。稍后再试。

I followed the comment by Danilo Mu?oz on the second page of the Apple form PostNonsensickle posted.

我在发布的Apple 表单 PostNonsensickle的第二页上关注了 Danilo Mu?oz 的评论。

Go to the "App Store" > "Store" > "Check for Unfinished Downloads ..."

转到“App Store”>“商店”>“检查未完成的下载...”

This fixed the bug.

这修复了错误。

As for your question, It doesn't seem that Yosemite changed the way that the Mac cache works, because I seem to have had the same problem on Mavericks.

至于你的问题,Yosemite 似乎并没有改变 Mac 缓存的工作方式,因为我在 Mavericks 上似乎也遇到了同样的问题。

回答by 9to5ios

It might be network error You can download directly it with this links

可能是网络错误您可以通过此链接直接下载

Or you can download .dmg files directly without such errors

或者您可以直接下载 .dmg 文件而不会出现此类错误

Xcode 6

Xcode 6

Xcode 5

Xcode 5

Xcode 4

Xcode 4