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

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

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


当前回答

在Ventura上尝试更新到Xcode 14.1近24小时后,我最终丢弃了Xcode应用程序,重新启动,只启动了App Store,并进行了新的安装,将App Store留在前台。它在我的M1 Mac mini上下载了(20分钟内大约7gb),不到一个小时就完成了安装。

背景:

After updating to Ventura, there was an update to Xcode 14.1 in the App Store. As with previous versions, I had trouble installing it. This time though, the install would progress to 61% (seen by hovering the mouse over the spinning circle in App Store), then stay there. Filtering for ASDAppQuery in the Console, as suggested in other answers, showed progress for a while, but then also stopped. The installd process was still using a lot of CPU. However, after a while it would stop doing so. It seemed that the App Store app would stop, and a couple of times I checked Activity Monitor and saw that it was in "App Nap" mode. After waking up again, the appstoreagent would run at 95% CPU (one core) for a while, followed by installd running again, at around 300% CPU. This cycle continued, but with no progress. I tried leaving it overnight, but in the morning it was in the same state: neither appstoreagent nor installd doing anything, but then seeming to wake up and grind away again, but making no progress. I had also tried quitting the App Store and starting again, but the same kept happening - going to 61%, then spinning away with no progress indication. Finally, I decided to trash Xcode, reboot, and install - that worked quickly and flawlessly.

其他回答

作为第一个测试,检查是否一切都很好,但真的很慢,试试这个:

保持App Store窗口的打开(感谢@Dhruv Saraswat指出这一点)。 打开“控制台”应用程序(不是“终端”,而是“控制台”) 进入“搜索栏”,输入“App Store”。 按“开始”按钮。 日志行将不时添加,以显示安装过程是如何进行的。就我而言,我看到了“……完成:825 / 1000”,过了一段时间,我得到了“…完成:826到1000”,等等。

这样你至少可以检查是否一切正常,虽然速度很慢。然后,你可以猜测在你自己的情况下,“完成:1000到1000”步骤需要多长时间。

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

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

控制台非常有用。这表明安装正在起作用,尽管缓慢。

我不得不下载xCode 3次。重新安装3次。总之需要8-12个小时的努力。

它仍在缓慢地进行着。

如果苹果团队加入一个更好的“安装进度”指示器——就像许多其他产品一样——那将是非常有帮助的。

仅供参考:在最新的Macbook Air M1上,8GB RAM, 256GB SSD,我从应用商店安装了XCode。我也有同样的问题。我以为我的装置卡住了。我把Macbook放了一整晚,然后它下载了XCode(大约12gb)。在那之后,它开始安装。我把它放在那里一整天都没碰过。晚上XCode就安装好了。我只需要让它静置24小时左右就能完成工作。

关闭你的反病毒文件屏蔽将有助于我的情况。

虽然从技术上讲,杀毒软件不应该阻止Mac应用商店中的应用程序,但似乎Xcode是一款有自己独特问题的应用程序,这就是为什么在某些情况下禁用杀毒软件是有效的。