版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/JerryWu145/article/details/86214970
使用
flutter
运行报出
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
的错误
当然,错误的意思是:找不到 CommandLineTools的目录
这个时候,不要重新装xcode,不要,费事又费力,而且没用
随后,我又开始执行
flutter doctor
进行检测,发现报出同样的问题。
恍然想到,上午的时候自己把 xcode
安装了一下,大概应该是他的原因了
于是,开始上下求索,用了会功夫,终于解决:
解决方案:
打开下方官方下载工具的网址
More Downloads for Apple Developers
选择对应版本的工具
下载--->安装,即可
然后,再*重新*
开启 terminal
执行
flutter docor
即可