更新 macOS 后 Xcode 更新卡住

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

Xcode update stuck after updating macOS

xcodeapp-storeupdatesmacos-high-sierra

提问by quanguyen

After updating macOS,

更新 macOS 后,

enter image description here

在此处输入图片说明

I cannot update XCode anymore:

我无法再更新 XCode:

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

I have been waiting for 2 hours but AppStore does not update.

我已经等了 2 个小时,但 AppStore 没有更新。

How do I restart the Xcode update process from the beginning?

如何从头开始重新启动 Xcode 更新过程?

Regards

问候

回答by Ali Beadle

A lot of the pain of updating XCode from the App Store can be avoided by downloading the latest version from the Apple Developer website directly (including beta versions if you are into them). Use this Apple Developer link.

通过直接从 Apple Developer 网站下载最新版本,可以避免从 App Store 更新 XCode 的许多痛苦(包括测试版,如果您喜欢的话)。使用此 Apple Developer 链接

For more information see this Ask Different answer.

有关更多信息,请参阅此询问不同的答案

回答by Anthony Kong

It is painfully slow when it comes to the 'Installing' stage.

当涉及到“安装”阶段时,它非常缓慢。

Based on the log from console, it does not look like it is spinning empty.

根据来自 的日志console,它看起来不像是空转的。

For example, progress from 94.67% to ...

例如,进度从 94.67% 到...

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

... 94.83% took almost 20 sec

... 94.83% 用了将近 20 秒

回答by quanguyen

It updated successfully, after around 5 hours. I just did nothing, just left it there.

大约 5 小时后,它成功更新。我什么也没做,只是把它留在那里。

回答by Sebastien H.

I think there's a download running in background which would explain this waiting time. I restarted a few times my Macbook pro, and ended up waiting until it ran the update successfuly.

我认为有一个在后台运行的下载可以解释这个等待时间。我重新启动了几次我的 Macbook pro,最后一直等到它成功运行更新。

When you make an XCode update, you have to do it when you have free time ahead, not during rushes, you never know how much time it can take

当您进行 XCode 更新时,您必须在有空闲时间时进行更新,而不是在匆忙期间进行,您永远不知道要花多少时间

回答by Mitemmetim

I also had problems with updating Xcode even after deleting it and trying to install it again via the App Store. For me it helped to switch to the Purchasedtab in the App Store and cancelling all the other downloads (by pressing Alt/ Optionand then clicking Cancel). Then the download of Xcode started, hope this helps!

即使在删除它并尝试通过 App Store 重新安装它之后,我也遇到了更新 Xcode 的问题。对我来说,它有助于切换到App Store 中的“已购买”选项卡并取消所有其他下载(通过按Alt/Option然后单击“取消”)。然后就开始下载Xcode了,希望对你有帮助!

回答by EULinguist

Currently Xcode update from developer tools does not work. Also Xcode 9.3 after download the install gets blocked because the file is corrupted. Additional Tool for Xcode 9.3 downloads and install but then does not work either. App Store downloads Xcode and restart but then it is not functional Attempts: https://developer.apple.com/download/more/App Store

目前,来自开发人员工具的 Xcode 更新不起作用。下载安装后 Xcode 9.3 也被阻止,因为文件已损坏。Xcode 9.3 的附加工具下载并安装,但随后也不起作用。App Store 下载 Xcode 并重新启动,但随后不起作用 尝试:https: //developer.apple.com/download/more/App Store

mac iOS developer tools

mac iOS 开发者工具

回答by Ashok R

I had problem opening .xcworkspace.force quit application window showing it's not responding on macos mojave.

我在打开时遇到问题。xc工作空间。强制退出应用程序窗口显示它在macos mojave上没有响应。

executed below commands after that it started working.

在它开始工作之后执行下面的命令。

/* remove saved app states for chosen applications*/
rm -rf ~/Library/Saved Application State/com.apple.dt.Xcode.savedState/

/* https://apple.stackexchange.com/questions/104810/is-it-safe-to-erase-library-developer */
rm -rf ~/Library/Developer