Now, the Cupertino giant has released thesource codeof its XNU kernel for macOS and iOS onGitHub.
The source code is supplied with the Apple Public Source License 2.0, which is a rather restrictive license.
Developers might want to read all the details before embedding their part of the XNU code.
For more information, refer to the GitHub page dedicated to XNU.
source: www.techworm.net