xcode select - fancyfsz/FancyWiki GitHub Wiki

1.xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select的路径指引不对。 可用xcode-select --print-path 查看当前路径。

修改路径 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

参考链接: https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error

2.为了节省磁盘空间,打包机卸载了Xcode.app,在用Python脚本上传Google包的时候报错: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist 命令行工具存在的情况下,解决方案:sudo xcode-select --reset将路径重置到/Library/Developer/CommandLineTools 不存在的情况,xcode-select --install安装一下。