I'm wondering where I can download the source code of the kernel of Mac OS X Mountain Lion 10.8.2: Darwin 12.2.0.

I googled it, but its hard to find. And yes, I tried http://www.opensource.apple.com.

2 Answers 2


I found it. Actually, the Darwin kernel is named xnu. The complete kernel name, version included, for Mac OS X 10.8.2 is xnu-2050.18.24.

It can be downloaded here: http://www.opensource.apple.com/tarballs/xnu/xnu-2050.18.24.tar.gz.

Source code can be browsed online here: http://www.opensource.apple.com/source/xnu/xnu-2050.18.24/


You are looking in the correct spot. I haven't seen the wiki updated since Lion - but in the past, the comprehensive build scripts were packaged as part of the darwinbuild project.

The source for 10.8.2 is listed at http://www.opensource.apple.com/release/mac-os-x-1082/ and you might just try grabbing the latest darwinbuild from MacPorts rather thab building it from source to see if it can help you pull a newer branch corresponding to 10.8 even though the documentation is not written to indicate if the Mountain Lion specific branch steps are complete (or even require anything different than just taking the current trunk code).

  • 1
    Mmmmh. There is no mention of Darwin on the page you gave me. I searched Darwin, but the only match was in the "Related Site" section of the page. Should I search for something else than Darwin?
    – Frizlab
    Commented Oct 27, 2012 at 0:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .