OSX - CodeTyphon的错误解决方法:Error: clang: error: unable to find utility "clang", not a developer tool or in PATH!!


错误信息:

Error: clang: error: unable to find utility "clang", not a developer tool or in PATH

错误原因:

xcode-select的位置错误

解决方法:

修改xcode-select指向的位置

查看xcode-select位置命令:

xcode-select --print-path

输出结果可能为:/Applications/Xcode.app/Contents/Developer

修改xcode-select指向的位置的命令:

 sudo xcode-select --switch /Library/Developer/CommandLineTools

再次执行上面命令,发现输出结果应该是:/Library/Developer/CommandLineTools ,那么修正完毕了,上面错误应该消失了!!

参考:

https://www.jianshu.com/p/5cb593f63ee8


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM