Find Mojave Kernel Headers

developmentkernelmojave

I'm trying to get a hold of the Kernel Headers for 10.14 Mojave, but even though the Beta version (even two actually) was already released, XNU's repository (both here and here) is still only up-to-date with High Sierra.

I also tried getting Command Line Developer Tools but they only contain User Headers (and maybe a few but not a lot of Kernel Headers).

Anything else I could do? I don't really need the Kernel source as a whole, only its headers.

Best Answer

Apparently XCode command line tools doesn't install the headers by default anymore. However, it does provide a package in /Library/Developer/CommandLineTools/Packages. On my system it was /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg. I installed this package and then the headers showed up in /System/Library/Frameworks/Kernel.framework/Headers.