macOS mkmf.rb can't find header files for ruby sudo rm -rf /Library/Developer/CommandLineTools xcode-select –install sudo xcodebuild -license accept open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg Ref: https://www.jianshu.com/p/a86e9b112191