终端gcc编译遇到不识别常用头文件,网上解决方案是
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
按照安装指引,遇到sdk软件包和mac os 不兼容,解决方案是:
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg