更新 macOS 后 Xcode 更新卡住
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49584185/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode update stuck after updating macOS
提问by quanguyen
回答by Ali Beadle
A lot of the pain of updating XCode from the App Store can be avoided by downloading the latest version from the Apple Developer website directly (including beta versions if you are into them). Use this Apple Developer link.
通过直接从 Apple Developer 网站下载最新版本,可以避免从 App Store 更新 XCode 的许多痛苦(包括测试版,如果您喜欢的话)。使用此 Apple Developer 链接。
For more information see this Ask Different answer.
有关更多信息,请参阅此询问不同的答案。
回答by Anthony Kong
回答by quanguyen
It updated successfully, after around 5 hours. I just did nothing, just left it there.
大约 5 小时后,它成功更新。我什么也没做,只是把它留在那里。
回答by Sebastien H.
I think there's a download running in background which would explain this waiting time. I restarted a few times my Macbook pro, and ended up waiting until it ran the update successfuly.
我认为有一个在后台运行的下载可以解释这个等待时间。我重新启动了几次我的 Macbook pro,最后一直等到它成功运行更新。
When you make an XCode update, you have to do it when you have free time ahead, not during rushes, you never know how much time it can take
当您进行 XCode 更新时,您必须在有空闲时间时进行更新,而不是在匆忙期间进行,您永远不知道要花多少时间
回答by Mitemmetim
I also had problems with updating Xcode even after deleting it and trying to install it again via the App Store. For me it helped to switch to the Purchasedtab in the App Store and cancelling all the other downloads (by pressing Alt/ Optionand then clicking Cancel). Then the download of Xcode started, hope this helps!
即使在删除它并尝试通过 App Store 重新安装它之后,我也遇到了更新 Xcode 的问题。对我来说,它有助于切换到App Store 中的“已购买”选项卡并取消所有其他下载(通过按Alt/Option然后单击“取消”)。然后就开始下载Xcode了,希望对你有帮助!
回答by EULinguist
Currently Xcode update from developer tools does not work. Also Xcode 9.3 after download the install gets blocked because the file is corrupted. Additional Tool for Xcode 9.3 downloads and install but then does not work either. App Store downloads Xcode and restart but then it is not functional Attempts: https://developer.apple.com/download/more/App Store
目前,来自开发人员工具的 Xcode 更新不起作用。下载安装后 Xcode 9.3 也被阻止,因为文件已损坏。Xcode 9.3 的附加工具下载并安装,但随后也不起作用。App Store 下载 Xcode 并重新启动,但随后不起作用 尝试:https: //developer.apple.com/download/more/App Store
mac iOS developer tools
mac iOS 开发者工具
回答by Ashok R
I had problem opening .xcworkspace.force quit application window showing it's not responding on macos mojave.
我在打开时遇到问题。xc工作空间。强制退出应用程序窗口显示它在macos mojave上没有响应。
executed below commands after that it started working.
在它开始工作之后执行下面的命令。
/* remove saved app states for chosen applications*/
rm -rf ~/Library/Saved Application State/com.apple.dt.Xcode.savedState/
/* https://apple.stackexchange.com/questions/104810/is-it-safe-to-erase-library-developer */
rm -rf ~/Library/Developer