I'm trying load kext on macOS Sierra. but error occur. Please, someone help me.
1.
csrutil disable && reboot
disable SIP.
2.
nvram boot-"debug=0x146 kext-dev-mode=1" && reboot
kext developer mode.
3. kext build with xcode.
4.
cp -rf /Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug /System/Library/Extensions
5.
kextload /System/Library/Extensions/test.kext
/System/Library/Extensions/test.kext failed to load - (libkern/kext) validation failure (plist/executable); check the system/kernel logs for errors or try kextutil(8).
6.
kextutil /System/Library/Extensions/test.kext
... Code Signing Failure: code signature is invalid
csrutil status
output? And are you sure your kext does not show up inkextstat
? – pmdj