Mac升级Catalina(10.15)后,使用clion,运行失败,提示内容如下:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun

解决方法
是因为升级后少了系统需要的运行库,重新安装Xcode developer tools即可解决该问题。在终端中运行命令行xcode-select --install 后会自动安装Xcode developer tools,安装成功后即可解决该问题。