Installing Common Header Files on macOS 10.14

macOS

Often, when compiling software from source on macOS, you’ll encounter errors about missing header files.

In this case, simply run the following command to install the SDK headers:

Terminal window
cd /Library/Developer/CommandLineTools/Packages/
Terminal window
open macOS_SDK_headers_for_macOS_10.14.pkg

[scode type=“yellow”] Replace 10.14 with your current macOS version number. [/scode]