我刚刚更新了我的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.

其他回答

最好的方法是在Mac上打开“控制台”(不是终端)应用程序,在搜索栏中输入“app Store”,然后按下“go”按钮

你会开始看到线条进来,你需要让它足够宽,这样你就能看到零件编号,并注意到进度,就像第二张截图一样

你会注意到有些数字移动得很快,有些则需要10分钟,但至少你知道你没有“卡住”!

在我的情况下,强制退出安装,关闭并打开appstore,再次运行更新

我的卡了大约3天,即使重新启动也无济于事! 我试图在MacOS Monterey上更新到xcode 13.2.1 我所做的是:

1-打开活动监视器并强制退出“安装”(不确定是否有必要!)

2-打开启动器,按住Option键(让图标晃动),点击xcode角落的x !问我是否要删除应用程序,我确认了,但神奇的是,它留下来了,当我打开它时,它更新到最新版本!所以基本上已经安装好了,只是不知道而已。

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.

我被困在完成:1000中的808。

这是变通方法。

App store应用程序屏幕的左下方,有一个帐户按钮。

按帐户,然后你会看到你应该接受的信息。

按“accept”,输入iCloud密码。

然后魔法。控制台的应用商店日志数量正在上升。