无法更新 Xcode 11

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/58285784/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:36:48  来源:igfitidea点击:

Can't update Xcode 11

xcodexcode11macos-catalinaxcode11.2xcode11.1

提问by Mycroft Canner

Trying to update from Xcode 11 GM to 11.1 always fail.

尝试从 Xcode 11 GM 更新到 11.1 总是失败。

I tried moving /Applications/Xcode.app first... nothing works

我先尝试移动 /Applications/Xcode.app ......没有任何效果

This is my commerce log:

这是我的商务日志:

2019-10-08 12:29:08+01 leviathan installd[556]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=501 "The package is attempting to install content to the system volume." UserInfo={NSLocalizedDescription=The package is attempting to install content to the system volume.} {

2019-10-08 12:29:08+01 leviathan installd[556]:PackageKit:安装失败:错误域=PKInstallErrorDomain 代码=501“包正在尝试将内容安装到系统卷。” UserInfo={NSLocalizedDescription=程序包正在尝试将内容安装到系统卷。} {

回答by Mojtaba Hosseini

Always working workaround (Manual download)

始终有效的解决方法(手动下载)

Download directly from Apple:

直接从苹果下载:

Latest Release version

or

Latest Beta version

or

Any version you need. And all other downloadable contents

最新发布版本

或者

最新测试版

或者

您需要的任何版本。以及所有其他可下载的内容

Then extract and move it where you like. This has so many benefits comparing to appstore update. (like the ability to resume download, not replacing the old one, not wasting hidden directories and etc.)

然后将其提取并移动到您喜欢的位置。与应用商店更新相比,这有很多好处。(例如恢复下载的能力,不替换旧的,不浪费隐藏目录等)

Note thatyou should use safari to download it.

请注意,您应该使用 safari 下载它。

Apple suggested workaround (Force App Store to redownload)

Apple 建议的解决方法(强制 App Store 重新下载)

Since This is Known Issues

由于这是已知问题

Xcode may fail to update from the Mac App Store after updating to macOS Catalina. (56061273)

更新到 macOS Catalina 后,Xcode 可能无法从 Mac App Store 更新。(56061273)

Apple suggest this:

苹果建议这样做:

To trigger a new download you can delete the existing Xcode.app or temporarily change the file extension so it is no longer visible to the App Store.

要触发新的下载,您可以删除现有的 Xcode.app 或临时更改文件扩展名,使其不再在 App Store 中可见。

回答by Mycroft Canner

Found a solution.

找到了解决办法。

The problem was that when the GM version came out I renamed it Xcode.appto Xcode 10.appand Xcode beta.appto Xcode.app

问题是,当GM版本出来我把它重新命名Xcode.app,以Xcode 10.appXcode beta.appXcode.app

App Store couldn't update Xcode then. I had rename Xcode 10.appback to Xcode.appand the update worked.

那时 App Store 无法更新 Xcode。我已重命名Xcode 10.appXcode.app并且更新有效。