7

Xcode plugin is missing and does not display the solution

 3 years ago
source link: https://www.logcg.com/archives/3437.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
最近更新:7th 12月, 2020

在之前的一篇文章中我为大家介绍了一个同时安装多个版本 Xcode 的工具使用 xcode-install 来管理 Xcode 版本但当你的系统中同时存在多个 Xcode 时,就会导致系统困惑,让 Xcode 的插件无法被识别,主要的体现就是系统偏好设置中根本看不到 Xcode 插件的选项——就好像你完全没安装过它们一样。

在系统偏好设置中,Xcode 扩展插件不显示了

总之,我在这里找到了答案

首先执行命令:

PATH=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support:"$PATH"

这条命令会临时添加一个工具的路径到我们的环境中,方便执行接下来的命令:

lsregister -f /Applications/Xcode.app

这条命令触发系统重新注册 Xcode 到系统,注意,这里 Xcode 的路径必须是你的真实路径,比如我现在系统中有 Xcode-12.2.app,还有 Xcode-12.1.app,那我要这样执行命令: lsregister -f /Applications/Xcode-12.2.app

命令执行后再到系统偏好里查看,就可以看到熟悉的 Xcode 扩展启用界面了。

本文由 落格博客 原创撰写:落格博客 » Xcode 插件丢失不显示的解决办法

转载请保留出处和原文链接:https://www.logcg.com/archives/3437.html


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK