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

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

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


当前回答

在将我的MacBook更新到Big Sur并试图将Xcode更新到12.5版本后,也遇到了同样的问题。 尝试重新安装,重启我的Mac,删除应用程序,然后从应用程序商店重新安装。

决定离开安装过夜,它帮助!早上Xcode安装成功。

其他回答

确认13.2和13.2.1中也有。查看顶部答案中的控制台应用程序将显示何时完成

对我来说,@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

如果(像我一样)你只需要命令行工具,你可能想尝试一下:

强制退出安装(使用ActivityMonitor或ps -kill) 从终端命令行运行xcode-select——install

为我工作!