Installing xdebug on macOs Mojave - 'php.h' file not found Reinstall the command line tools xcode-select --install Reinstall the header files sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /