我刚刚更新了我的mac到macOS大苏尔,并试图更新到下一个版本的XCode。它已经以75-80%的速度运行了几个小时:

另外,当我去发射台时,我看到了这个:

其他人有这个问题或知道如何解决它吗?


当前回答

对我来说,@thelawnmowerman提出的解决方案非常有效。

只需要检查当前正在进行的线程的总数。一旦它完成了总数,在几分钟内,xcode可以启动。

其他回答

Solved - My new MacBook Air M2 was struggling with downloading and installing Xcode. The problem, I think, was that the laptop sleeps after a short period of time and that stops the download/install process. Download/install restarts at 80% or 0% when the laptop is reawakened - repeat. A simple way to avoid the laptop from sleeping is to open the Terminal application (Application/Utilities/Terminal) and type "caffeinate". That prevents the laptop from sleeping and lets the download/install process complete itself. When done type control-c into the Terminal and it will quit caffeinate.

我使用的是基本款Macbook Air M1 2021 (8 GB RAM)。我下载了Xcode 并使用xip命令安装它。打开终端,输入以下内容:

xip -x ~/file-location

双击文件花费的时间太长,上面的命令花了大约5-8分钟来展开文件。之后,只需将其移动到应用程序文件夹,以便您可以在Launchpad中找到它。

参考答案:https://stackoverflow.com/a/56913909/15425440

我也遇到过同样的问题。我用@thelawnmowerman answer监控了这个过程。但在取得进展后,这个过程陷入了僵局。

每次进程卡住时,我就会终止应用商店,然后再次打开它并开始监控进程,每次进程都开始进展,我达到了1000(100%)。

我遇到了完全相同的情况,我更新了MacOS,然后更新了Xcode到12.5.1,它卡在7.2GB的7.2GB。我离开它4个小时什么都没有发生(但在活动监视器“安装”正在工作)。我把它放了一晚上,到早上它自己就好了。

我在安装13.3版本时遇到了类似的问题。我的进度条显示安装大约1-2小时,然后开始显示等待。最终对我有用的是使用终端代码“xcode-select—install”安装它。