The root reason is missing the /usr/include folder, install command-line tools sometimes will not automatically add it. The Link shows the correct way

安装

cd /Library/Developer/CommandLineTools/Packages/

open macOS_SDK_headers_for_macOS_10.14.pkg