zl程序教程

您现在的位置是:首页 >  工具

当前栏目

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. 解决方案

解决方案 for &# No found at x27 com
2023-06-13 09:18:10 时间
  1. 执行如下命令 /usr/sbin/pkgutil --packages | grep CLTools 如果没有返回值,说明缺少xcode相关工具包
  2. 依此执行如下命令
xcode-select --print-path
# in my case /Library/Developer/CommandLineTools

# the next line deletes the path returned by the command above
sudo rm -rf $(xcode-select --print-path)

# install them (again) if you don't get a default installation prompt
xcode-select --install
# 重新执行步骤一的命令,得出如下结果即可解决
/usr/sbin/pkgutil --packages | grep CLTools
com.apple.pkg.CLTools_Executables
com.apple.pkg.CLTools_SDK_macOS110
com.apple.pkg.CLTools_SDK_macOS1015
com.apple.pkg.CLTools_macOS_SDK

本文由 小马哥 创作,采用 知识共享署名4.0 国际许可协议进行许可 本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名 最后编辑时间为: 2023/03/31 14:37