### Configure Xcode Header Search Paths Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Add custom KERNEL_EXTENSION_HEADER_SEARCH_PATHS and KERNEL_FRAMEWORK_HEADERS in Xcode project settings. ```text KERNEL_EXTENSION_HEADER_SEARCH_PATHS = $(PROJECT_DIR)/MacKernelSDK/Headers KERNEL_FRAMEWORK_HEADERS = $(PROJECT_DIR)/MacKernelSDK/Headers ``` -------------------------------- ### Configure Xcode Library Search Paths Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Ensure Library Search Paths in Xcode includes the location of libkmod.a. ```text $(PROJECT_DIR)/MacKernelSDK/Library/x86_64 ``` -------------------------------- ### Clone MacKernelSDK Repository Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Clone the MacKernelSDK repository to your project directory to begin using it. ```sh git clone https://github.com/acidanthera/MacKernelSDK ``` -------------------------------- ### Targeting i386: Other Linker Flags Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Set these flags in 'Other Linker Flags' (OTHER_LDFLAGS) when compiling for 32-bit i386 architecture. ```text -static -target i386-apple-macos10.6 ``` -------------------------------- ### Targeting i386: Other C Flags Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Set these flags in 'Other C Flags' (OTHER_CFLAGS) when compiling for 32-bit i386 architecture. ```text -static -nostdlib -Wno-stdlibcxx-not-found -target i386-apple-macos10.6 -fallow-unsupported -fno-stack-protector if targeting 10.5 and older -fno-jump-tables if targeting 10.5 and older ``` -------------------------------- ### Fix Mach-O Alignment for i386 Kexts Source: https://github.com/mieze/rtl812xlucy/blob/main/MacKernelSDK/README.md Use the fix-macho32 script to correct symbol table alignments for i386 kexts, which are of type MH_OBJECT. ```sh ./fix-macho32 [bin_path] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.