[英]Unable to update to Xcode 8
I would like to update to Xcode 8, but when I start the App Store it just shows me an Open
button, but my existing Version is 7.3.1 我想更新到Xcode 8,但是当我启动App Store时它只显示一个
Open
按钮,但我现有的版本是7.3.1
The requirements should be El Capitan 10.11.5 - I have 10.11.6 installed. 要求应该是El Capitan 10.11.5 - 我安装了10.11.6。
Why is there no Update
button? 为什么没有
Update
按钮?
Check if you have multiple installations of Xcode on your system. 检查系统上是否有多个Xcode安装。 The App Store often gets confused and loads one you're not considering, such as the version on your back up drive.
App Store经常会感到困惑并加载一个你没有考虑的问题,例如备份驱动器上的版本。 It's possible it has updated a different installation than the one it launches as well.
它可能已经更新了与其启动的安装不同的安装。
Executing the following command in a terminal window should list all installations of Xcode the App Store may find. 在终端窗口中执行以下命令应列出App Store可能找到的所有Xcode安装。
mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode'"
When you have Xcode open (from hitting Open
in the store), right click the Xcode icon on your dock, select Options
, and Show in Finder
. 当您打开Xcode(从商店中点击
Open
)时,右键单击Dock上的Xcode图标,选择Options
,然后Show in Finder
。 Does the installation it shows match up with the one you expected it to launch? 它显示的安装是否与您预期启动的安装相匹配?
If you specifically open each Xcode installation the mdfind
command found, are any of them Xcode 8? 如果你专门打开
mdfind
命令找到的每个Xcode安装,那么它们中的任何一个都是Xcode 8吗?
You can control which installation of Xcode the App Store will update. 您可以控制App Store将更新哪个Xcode安装。 Check each of the app folders, and look for a
Contents/_MASReceipt
folder. 检查每个应用程序文件夹,然后查找
Contents/_MASReceipt
文件夹。 Ensure the installation you want to update has that (and a receipt
file inside that), and delete the _MASReceipt
folder for all of the other versions. 确保要更新的安装具有该安装(以及其中的
receipt
文件),并删除所有其他版本的_MASReceipt
文件夹。
Now the App Store app should update the correct installation for you. 现在App Store应用程序应该为您更新正确的安装。
All I had to do was restart my mac. 我所要做的就是重启我的mac。 Then, went to the App Store and saw "Update" instead of "Open".
然后,前往App Store,看到“更新”而不是“打开”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.