本人能力有限,调试了几个晚上根本配置不出来Xcode的obj4调试环境,请直接移步这里,等我能力够了再补齐这个文章。
https://opensource.apple.com/tarballs/
#include <_simple.h> <== libplatform-177.270.1/private/_simple.h
#include <Block_private.h> <== xnu-6153.81.5/libkern/libkern/Block_private.h
#include <CrashReporterClient.h> <== Libc-997.90.3/include/CrashReporterClient.h
#include <kern/restartable.h> <== xnu-6153.81.5/osfmk/kern/restartable.h
#include <mach-o/dyld_priv.h> <== dyld-733.6/include/mach-o/dyld_priv.h
#include <objc-shared-cache.h> <== dyld-733.6/include/objc-shared-cache.h
#include <os/base_private.h> <== libplatform-177.270.1/private/os/base_private.h
#include <os/lock_private.h> <== libplatform-???/private/os/lock_private.h
#include <os/tsd.h> <== xnu-6153.81.5/libsyscall/os/tsd.h
#include <pthread/tsd_private.h> <== libpthread-416.40.3/private/tsd_private.h
#include <pthread/spinlock_private.h> <== libpthread-416.40.3/private/spinlock_private.h
#include <sys/reason.h> <== xnu-6153.81.5/bsd/sys/reason.h
#include <System/machine/cpu_capabilities.h> <== xnu-6153.81.5/osfmk/machine/cpu_capabilities.h
#include <System/pthread_machdep.h> <== Libc-825.40.1/pthreads/pthread_machdep.h