在10.13.1上编译xnu内核(小白文)

为什么是小白文呢?因为我就是小白啊

在进行MOXil学习的时候,第九章我们需要通过编译内核来对XNU有进一步的了解,那么如何在最近的系统上编译XNU呢?今天就一起踩坑吧

资源工作

这里我们的内核版本和系统对应,首先看看是什么系统:

系统版本

那么我们从苹果开源代码网站上找到自己版本对应的XNU内核,对于我们来说,对应的是xnu-4570.20.62

如果下载了内核源码之后直接编译你就会遇到一大堆的error然后痛苦的go die,这是因为缺少很多头文件,库等等,首先我们需要安装XcodeCommand line Tool,这会帮我们解决很多麻烦,然后我们需要下载几个包,为了简便起见,我们直接通过脚本来做:

vim download.sh

脚本的内容为:

wget https://opensource.apple.com/tarballs/libplatform/libplatform-126.1.2.tar.gz
wget https://opensource.apple.com/tarballs/libdispatch/libdispatch-703.1.4.tar.gz
wget https://opensource.apple.com/tarballs/xnu/xnu-4570.20.62.tar.gz
wget https://opensource.apple.com/tarballs/dtrace/dtrace-262.tar.gz
wget https://opensource.apple.com/tarballs/AvailabilityVersions/AvailabilityVersions-32.tar.gz

其实你直接把命令复制过去就好的,到时候如果要做个自动化的工程还可以加个自动解压加编译的脚本
这样我们的下载过程就完成,接下来就是解压然后逐个编译,并配置好环境

环境准备

编译

AvailabilityVersions

$ mkdir -p dst
$ make install SRCROOT=$PWD DSTROOT=$PWD/dst
$ sudo ditto $PWD/dst/usr/local `xcrun -sdk macosx -show-sdk-path`/usr/local

dtrace

只需要编译 dtrace 项目中的 ctfconvertctfdumpctfmerge

$ mkdir -p obj sym dst
$ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge ARCHS="x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
$ sudo ditto $PWD/dst/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain

XNU头文件

在编译 libdispatch 之前,需要将XNU的头文件复制到SDK文件夹下,因为编译 libdispatch 时需要用到这些头文件。

$ mkdir -p BUILD.h/obj BUILD.h/sym BUILD.h/dst
$ make installhdrs SDKROOT=macosx ARCH_CONFIGS=X86_64 SRCROOT=$PWD OBJROOT=$PWD/BUILD.h/obj SYMROOT=$PWD/BUILD.h/sym DSTROOT=$PWD/BUILD.h/dst
$ sudo xcodebuild installhdrs -project libsyscall/Libsyscall.xcodeproj -sdk macosx ARCHS="x86_64" SRCROOT=$PWD/libsyscall OBJROOT=$PWD/BUILD.h/obj SYMROOT=$PWD/BUILD.h/sym DSTROOT=$PWD/BUILD.h/dst
$ sudo ditto BUILD.h/dst `xcrun -sdk macosx -show-sdk-path`

xnu-4570.1.46 版本的内核源码因为 缺失thread_self_restrict.h头文件,所以此处必定会编译失败。
需要在 xcodebuild 前先创建一个空的文件来使编译通过。

$ touch libsyscall/os/thread_self_restrict.h

libplatform

编译 libdispatch 时同样需要用到 libplatform 的头文件。

$ sudo ditto $PWD/include `xcrun -sdk macosx -show-sdk-path`/usr/local/include

libdispatch

$ mkdir -p obj sym dst
$ sudo xcodebuild install -project libdispatch.xcodeproj -target libfirehose_kernel -sdk macosx ARCHS="x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
$ sudo ditto $PWD/dst/usr/local `xcrun -sdk macosx -show-sdk-path`/usr/local

XNU

# KERNEL_CONFIGS: RELEASE / DEVELOPMENT / DEBUG
$ make SDKROOT=macosx ARCH_CONFIGS=X86_64 KERNEL_CONFIGS="RELEASE"

编译成功后,即可在BUILD/obj目录下找到内核文件。

# KERNEL_CONFIGS: RELEASE
$ cd BUILD/obj/RELEASE_X86_64
$ file kernel
kernel: Mach-O 64-bit executable x86_64

# KERNEL_CONFIGS: DEVELOPMENT
$ cd BUILD/obj/DEVELOPMENT_X86_64
$ file kernel.development
kernel: Mach-O 64-bit executable x86_64

# KERNEL_CONFIGS: DEBUG
$ cd BUILD/obj/DEBUG_X86_64
$ file kernel.debug
kernel: Mach-O 64-bit executable x86_64

最后可以看到我们编译成功的图:

编译好的内核

最后要注意的是编译内核对于你的系统版本之类的有要求,比如上述的教程在更老的系统可能就不会成功,甚至在同为High Serria的其他小版本上也不会成功,我只是没有想到很坑的一点是我用的Serria的GCD和平台库函数加上10.13.1的内核最后东瓶西凑成功的。

一开始总是报一个没有<internal/atomic.h>的错,我本来想要创建一个解决,但是GCD中有很多依赖这个头文件的数据类型,所以我通过google找到这个出自于libplatform-125,于是乎我就在源代码逐个筛选,最后成功。如果你想体验这个过程,就全部使用10.13.1libplatformlibdispatch,你就会有不一样的体会。

替换内核操作(需要关闭SIP)

sudo cp BUILD/obj/kernel /System/Library/Kernels/
sudo kextcache -invalidate /

参考链接

Building the XNU kernel on Mac OS X Sierra (10.12.X)
XNU内核编译简要教程

7 Likes

很强啊!!!

:sweat_smile: 勉强摸到菜鸡的门槛

强,学习了

现在我也是混进来的了 :grinning:

大佬能详细分享下解决方案吗

根据版本信息二分查找

@Peterpan0927 没听明白0.0 编译10.13 xnu内核需要的是libplatform-161,是把 libplatform-125的头文件放到 libplatform-161 中吗,我把 libplatform-125的头文件放到 libplatform-161 中还是会有其他的编译错误

只用125,不用161

1 Like

谢谢我试一下

请问一下这里说的XNU头文件是指针的哪些头文件呢?SDK文件夹具体在什么位置呢?纯小白求教

用这命令写就看到了

make安装那些工具时老是报:
make install SRCROOT=$PWD DSTROOT=$PWD/dst
Makefile:3: /Library/Developer/CommandLineTools/Makefiles/CoreOS/Standard/Commands.make: No such file or directory
Makefile:4: /Library/Developer/CommandLineTools/Makefiles/CoreOS/Standard/Variables.make: No such file or directory
make: *** No rule to make target `/Libra
安装了CommandLineTools工具 但是去目录下看确实没有这个那个东西请教下 还需要安装什么东西吗。

想请教下我编译完之后链接prelinkedkernel.development不成功,版本和系统全对应的,只能链接调试套件里面的kernel.development,找了好久也没找到有说这个问题的,有遇到过同样的问题吗?
kxld[com.apple.iokit.IONVMeFamily]: In interface com.apple.kpi.private of kernel, couldn’t find symbol _xcpm_bios_mbox_cmd_unsafe_read

kxld[com.apple.iokit.IONVMeFamily]: In interface com.apple.kpi.private of kernel, couldn’t find symbol _xcpm_bios_mbox_cmd_write

kxld[com.apple.iokit.IONVMeFamily]: In interface com.apple.kpi.private of kernel, couldn’t find symbol _xcpm_is_hwp_enabled

kxld[com.apple.iokit.IONVMeFamily]: In interface com.apple.kpi.private of kernel, couldn’t find symbol _xcpm_mbox_lock

kxld[com.apple.iokit.IONVMeFamily]: In interface com.apple.kpi.private of kernel, couldn’t find symbol _xcpm_mbox_unlock

Can’t use IONetworkingFamily.kext - not linked.

Prelink failed for com.apple.driver.Intel82574LEthernet; omitting from prelinked kernel.

Can’t use IONetworkingFamily.kext - not linked.

Prelink failed for com.apple.driver.mDNSOffloadUserClient; aborting prelink.

Failed to generate prelinked kernel.

Child process /usr/sbin/kextcache[645] exited with status 71.

haidragondeMac:~ haidragon$ ls /System/Library/PrelinkedKernels/

immutablekernel immutablekernel.j137ap.im4m immutablekernel.j680ap.im4m

immutablekernel.j132ap.im4m immutablekernel.j174ap.im4m prelinkedkernel

编译xnu报错了
➜ sudo xcodebuild installhdrs -project libsyscall/Libsyscall.xcodeproj -sdk macosx ARCHS=“x86_64” SRCROOT=$PWD/libsyscall OBJROOT=$PWD/BUILD.h/obj SYMROOT=$PWD/BUILD.h/sym DSTROOT=$PWD/BUILD.h/dst
Password:
Sorry, try again.
Password:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild installhdrs -project libsyscall/Libsyscall.xcodeproj -sdk macosx ARCHS=x86_64 SRCROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall OBJROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/obj SYMROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/sym DSTROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/dst

Build settings from command line:
ARCHS = x86_64
DSTROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/dst
OBJROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/obj
SDKROOT = macosx11.1
SRCROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall
SYMROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/sym

note: Using new build system
note: Planning build
note: Constructing build description
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)

** INSTALL HEADERS FAILED **

AppleSourceCode/macos_11.2/xnu-7195.81.3 took 8s
➜ touch libsyscall/os/thread_self_restrict.h

AppleSourceCode/macos_11.2/xnu-7195.81.3
➜ sudo xcodebuild installhdrs -project libsyscall/Libsyscall.xcodeproj -sdk macosx ARCHS=“x86_64” SRCROOT=$PWD/libsyscall OBJROOT=$PWD/BUILD.h/obj SYMROOT=$PWD/BUILD.h/sym DSTROOT=$PWD/BUILD.h/dst
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild installhdrs -project libsyscall/Libsyscall.xcodeproj -sdk macosx ARCHS=x86_64 SRCROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall OBJROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/obj SYMROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/sym DSTROOT=/Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/dst

Build settings from command line:
ARCHS = x86_64
DSTROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/dst
OBJROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/obj
SDKROOT = macosx11.1
SRCROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall
SYMROOT = /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/BUILD.h/sym

note: Using new build system
note: Planning build
note: Using build description from disk
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_static’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Libsyscall_dynamic’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘MIG headers’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Build’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)
error: /Users/dz0400877/Desktop/Program/AppleSourceCode/macos_11.2/xnu-7195.81.3/libsyscall/Libsyscall.xcconfig:1: included file ‘<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig’ does not exist (in target ‘Syscalls’ from project ‘Libsyscall’)