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

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

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


当前回答

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

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

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

其他回答

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

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

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

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

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.

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

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

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