macos执行g++报错 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandL

date
Mar 8, 2019
slug
2019-03-08
status
Published
tags
Bug解决
summary
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandL
type
Post

命令行执行g++报错

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

解决方案

命令行运行安装xcode组件
xcode-select --install

© chz8bit 2018 - 2024