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

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

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


当前回答

你可以打开应用商店,搜索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.

哦,真的很有用! 我在VMWare Station中使用IOS12.3.1,当我将xcode从13.2更新到13.3时,它卡住了。

附加:我的CPU是i5-9

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

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

为我工作!

我也有同样的问题,对我来说,这个帖子里的提示不管用。我发现的问题是,App Store认为我没有足够的空间,而实际上我有足够的Xcode空间。

要解决“空间”问题,您可以创建一个虚拟文件并直接删除它。这可以让你欺骗你的电脑,你实际上有足够的空间。(与容器有关,阅读这里了解更多信息:https://medium.com/geekculture/installing-xcode-with-not-enough-disk-space-available-b96c8f17115b)

分步指南:

打开终端 移动到你想用cd创建文件的位置,比如cd Documents 现在使用命令mkfile G your-file-name。mkfile 4G mymovie. ext(例如:mkfile 4G mymovie. ext)mov =>将创建一个名为mymovie的电影文件,大小为4GB) 按Enter键,需要一些时间来完成这个过程(取决于文件大小) 当命令完成时,将返回提示符,并创建一个文件。 转到查找器并删除文件。(搬到垃圾桶) 立即重新安装Xcode。

希望对你有帮助。

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