在 Mac OS X Mavericks (10.9.5.) 和 Yosemite (10.10.2) 上下载 XCode 6.2 时遇到问题

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

Trouble downloading XCode 6.2 on Mac OS X Mavericks (10.9.5.) and Yosemite (10.10.2)

iosxcodeosx-mavericksosx-yosemitexcode-6.2

提问by MB_iOSDeveloper

I can not download Xcode 6.2. I tried upgrading it and it doesn't work. I have successfully downloaded 6.2. beta 5 but can't download the full version.

我无法下载 Xcode 6.2。我尝试升级它,但它不起作用。我已经成功下载了 6.2。beta 5 但无法下载完整版。

I am using Chrome and safari. I had multiple network errors , connection breaks and it this isn't my problem. The problem is that the download comes to 2.6/2.6 and does not finalize it. The file is still named "Xcode_6.2.dmg.crdownload". I tried:

我正在使用 Chrome 和 safari。我有多个网络错误,连接中断,这不是我的问题。问题是下载到了 2.6/2.6 并且没有敲定。该文件仍命名为“Xcode_6.2.dmg.crdownload”。我试过:

  • renaming the file To Xcode.6.2.dmg
  • to Xcode6.dmg (with one dot)
  • open package content and run XCode6.2.dmg
  • 将文件重命名为 Xcode.6.2.dmg
  • 到 Xcode6.dmg(带一个点)
  • 打开包内容并运行 XCode6.2.dmg

and I alsways get the following error: "The following disk images couldn't be opened" "Xcode6.dmg" Reason = image not recognized.

并且我总是收到以下错误:“无法打开以下磁盘映像”“Xcode6.dmg”原因 = 无法识别图像。

Some times the downloaded file which said to be finished had only 726 MB disk size, even the browser AND Finder said it had 2.6/2.6Gb (I found this out by "Get Info" for the download file).

有时,据说已完成的下载文件只有 726 MB 磁盘大小,即使是浏览器和 Finder 也说它有 2.6/2.6Gb(我通过下载文件的“获取信息”找到了这一点)。

I also followed this so : How to download Xcode DMG or XIP file?

我也跟着这个: How to download Xcode DMG or XIP file?

and this:

和这个:

Trouble downloading XCode 6.1 on Mac OS X Yosemite

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

None helped. I also tried:

没有任何帮助。我也试过:

  • downloading via wget
  • resuming via wget
  • download from a different internet connection/IP
  • from different machines: Mac mini 2009, 2013, Mac Pro 2012
  • from different OS versions Mac Mavericks and Yosemite
  • from different accounts: iOS Developer and iOS Enterprise Developer
  • from different download links
  • from different browsers: Safari, Chrome
  • updating Xcode 6.1.1 to Xcode 6.2.
  • few more so answers which I don't have here
  • 通过 wget 下载
  • 通过 wget 恢复
  • 从不同的互联网连接/IP 下载
  • 来自不同的机器:Mac mini 2009、2013、Mac Pro 2012
  • 来自不同操作系统版本的 Mac Mavericks 和 Yosemite
  • 来自不同的账户:iOS Developer 和 iOS Enterprise Developer
  • 来自不同的下载链接
  • 来自不同的浏览器:Safari、Chrome
  • 将 Xcode 6.1.1 更新到 Xcode 6.2。
  • 还有一些我在这里没有的答案

Here is my terminal output:

这是我的终端输出:

Mac-mini:~ W_MB$ sudo find / -name *XCode*
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component/Contents/MacOS/IMXCodec
/Applications/iMovie.app/Contents/PlugIns/Compressor/CompressorKit.bundle/Contents/PlugIns/ProMediaIO/Components/IMXCodec.component/Contents/Resources/IMXCodec.rsrc
/Applications/Xcode.app/Contents/OtherFrameworks/DevToolsInterface.framework/Versions/A/Resources/English.lproj/PBXCodeAssistant.nib
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory

I am beggining to run out of ideas what to try next and how to solve the problem. I also wonder if it is a problem on the apple-server-side. I need to finish my project in 2-3 weeks and I am having real problems with this XCode update. Any ideas or solutions are welcome, I will try them.

我开始想不出接下来要尝试什么以及如何解决问题的想法。我也想知道是不是apple-server端的问题。我需要在 2-3 周内完成我的项目,但我在这个 XCode 更新中遇到了真正的问题。欢迎任何想法或解决方案,我会尝试。

UPDATE (17.04.2015.):

更新 (17.04.2015.):

I have successfully downloaded Xcode 6.3 but only after several downloads. I had once the same error like before. The download did go to 100/100% but didn't finish and I had once a "package corrupt" error. I also downloaded Xcode 6.3 onto my late 2009 mac mini (Mavericks) and had the corrupt package error while on my mac mini 2012 (Yosemite) the same .dmg file worked...

我已成功下载 Xcode 6.3,但仅在多次下载后才下载。我有一次和以前一样的错误。下载确实达到了 100/100%,但没有完成,我曾经遇到过“包损坏”错误。我还将 Xcode 6.3 下载到我 2009 年末的 mac mini (Mavericks) 上,并且在我的 mac mini 2012 (Yosemite) 上运行相同的 .dmg 文件时出现包损坏错误...

回答by LinusGeffarth

Regarding your network errors: I think if multiple machines have the same problem then you should go somewhere else, like to libraries with free wifi to see if it works there.

关于你的网络错误:我认为如果多台机器有同样的问题,那么你应该去其他地方,比如有免费 wifi 的图书馆,看看它是否在那里工作。

I recommend to deinstall Xcode 6.2beta and any other Xcode copies you have. (maybe save them to an external hard drive so you have a backup) You can do this using CleanMyMac (not sure if deinstall is included in a trial version).

我建议卸载 Xcode 6.2beta 和您拥有的任何其他 Xcode 副本。(也许将它们保存到外部硬盘驱动器以便您有备份)您可以使用 CleanMyMac 执行此操作(不确定试用版中是否包含 deinstall)。

After deinstalling I would try to download it from the AppStore since that will give you the most stable internet connection.

卸载后,我会尝试从 AppStore 下载它,因为这将为您提供最稳定的互联网连接。

If that still does not work, try again downloading Xcode from Apple's Member Center.

如果这仍然不起作用,请再次尝试从 Apple 的会员中心下载 Xcode。

No progress? Then use the beta to finish your project and send a support request to Apple (they offer phone support now which is quite a lot faster)

没有进展?然后使用测试版完成您的项目并向 Apple 发送支持请求(他们现在提供电话支持,速度要快得多)

Good luck and hope it helps :)

祝你好运,希望它有帮助:)

回答by harshal

I the had the same problem yesterday. Here is what i did to solve it.

我昨天有同样的问题。这是我为解决它所做的。

  1. Quit the app store.
  2. Open temo directory. (in terminal type : open $TMPDIR)
  3. Delete all the files in tempdir.
  4. Then restart the macbook (Don't know does it count or not but i just did it).
  5. Start the update process in app store again.
  1. 退出应用商店。
  2. 打开 temo 目录。(在终端类型中:打开 $TMPDIR)
  3. 删除 tempdir 中的所有文件。
  4. 然后重新启动 macbook(不知道它算不算,但我刚刚做到了)。
  5. 再次启动应用商店中的更新过程。

it worked for me.u can try it. Good luck!

它对我有用。你可以试试。祝你好运!

Cheers,

干杯,

Harshal

哈沙尔

回答by William Dayanayev

I'm not sure, but I think this is because you downloaded your current version of Xcode from online. Now that you try to update it as an app, it runs into some kind of problem. I have the exact same problem, and I fixed it by uninstalling and reinstalling Xcode from the app store. This worked for me.

我不确定,但我认为这是因为您从网上下载了当前版本的 Xcode。既然您尝试将其更新为应用程序,它就会遇到某种问题。我有完全相同的问题,我通过从应用商店卸载并重新安装 Xcode 来修复它。这对我有用。

回答by MB_iOSDeveloper

The problem solved itself somehow... Here is what I did. First I unistalled the old version of Xcode. Then I downloaded it from the appStore. Then the download got stuck at 2.58 of 2.58 Gb. Then I quit the app store and relaunched it. This time I signed in with a different account. Suddenly the app went to "Installing" state a stuck there. Then I restarted the mac and when I reopened "Launchpa" There was a new Icon of Xcode and it works. I did this on my Mac mini with Mavericks. I copied the whole app folder onto my mac pro and it works with some minor errors. But I got Xcode/simulator up and running in the end. This is not a REAL solution, and I haven't found out why it worked. I just posted the solution because it maybe help someone, somehow... Thank you guys for your help. I combined all your solutions and in the end it worked a bit diffrently :)

问题以某种方式自行解决了......这就是我所做的。首先,我卸载了旧版本的 Xcode。然后我从appStore下载了它。然后下载卡在 2.58 的 2.58 Gb。然后我退出了应用商店并重新启动了它。这次我用不同的帐户登录。突然,应用程序进入“正在安装”状态,卡在那里。然后我重新启动了 mac,当我重新打开“Launchpa”时,有一个新的 Xcode 图标,它可以工作。我在我的 Mac mini 上用 Mavericks 做了这个。我将整个应用程序文件夹复制到我的 mac pro 上,但它会出现一些小错误。但我最终启动并运行了 Xcode/模拟器。这不是一个真正的解决方案,我还没有找到它为什么起作用。我刚刚发布了解决方案,因为它可能以某种方式帮助某人......谢谢你们的帮助。

回答by sunil singh

I had the same problem befoure. Here is what i did to solve it.

我之前也遇到过同样的问题。这是我为解决它所做的。

here are two way to download Xcode 6,Upgrade OSX....etc,i have download successfully

这里有两种下载 Xcode 6 的方法,升级 OSX ....等,我已经下载成功

1 Download The Xcode from a different internet connection/IP (i will suggest, you should use dongle instead of WIFI)

1 从不同的互联网连接/IP 下载 Xcode(我建议你应该使用加密狗而不是 WIFI)

or

或者

2:trying to download US Network throw the VPN

2:尝试下载美国网络扔VPN

Thanks Sushil

谢谢苏希尔