起因:本来是接手的别人的旧电脑,改动了一下用户名,也就是你登录macOS系统的时候,屏幕上展示的那一串英文字符。然后,打开
iTerm 命令行工具
,就出现了如下报错。
△报错
2021-07-25 08:25:15.788 xcodebuild[1255:6079] [MT] PluginLoading: Required plug-in compatibility UUID XXXA1938-53DE-4XXD-9D64-87XXXC4XXXXD for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-07-25 08:25:15.792 xcodebuild[1255:6079] [MT] PluginLoading: Required plug-in compatibility UUID XXXA1938-53DE-4XXD-9D64-87XXXC4XXXXD for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-07-25 08:25:15.795 xcodebuild[1255:6079] [MT] PluginLoading: Required plug-in compatibility UUID XXXA1938-53DE-4XXD-9D64-87XXXC4XXXXD for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-07-25 08:25:15.796 xcodebuild[1255:6079] [MT] PluginLoading: Required plug-in compatibility UUID XXXA1938-53DE-4XXD-9D64-87XXXC4XXXXD for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSImageNamed.xcplugin' not present in DVTPlugInCompatibilityUUIDs
△解决
正所谓兵来将挡水来土掩,有问题就解决问题。
获取 UUID
,在命令行中输入如下命令即可。
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
根据提示,打开访达
,敲击快捷键组合 Command+Shift+G
,在输入框中输入 ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
,敲击回车键。找到 VVDocumenter-Xcode.xcplugin
。
点击鼠标右键,选择显示包内容
,找到 info.plist
, 用 Xcode
打开编辑,找到 DVTPlugInCompatibilityUUIDs
,新增一项,把上面命令行中的 UUID
复制进去。敲击快捷键组合 Command+S
,保存即可。
其余的报错中提到的 xxxxx.xcplugin
,也是如法炮制进行 info.plist
的新增。当一切都新增完。
再次打开 iTerm 命令行工具
,就一切如常了。