Load DriverKit and error = OSSystemExtensionErrorDomain Code=8

I have requested the entitlements for driver Kit and Apple developers have agreed to the rights.

I use the following two ways to code sign my dext project.
  1. The first method is to manually set the codesign and profile directly with xCode11.5 and compile.

  2. Use the following command line settings

codesign --verify --entitlements /Users/z/Desktop/test/TPHID.entitlements --timestamp --options=runtime -f -s "Developer ID Application: **** (*) Technology Corporation (*****)" /Users /z/Desktop/test/HID\ Driver\ Test\ Demo.app/Contents/Library/SystemExtensions/jp.co.sharp.displaysystem.touchpanel2tpkernel.dext
codesign --verify --entitlements /Users/z/Desktop/test/HID
DriverTestDemo.entitlements --timestamp --options=runtime -f -s "Developer ID Application: ** (**) Technology Corporation (********)" /Users /z/Desktop/test/HID\ Driver\ Test\ Demo.app

The result is as follows
  1. In SIP disable environment

App runs successfully and dext is loaded successfully.
  1. In SIP enable environment

App runs successfully, failed to load dext. The error returned is as follows
"Request to activate jp.co.sharp.displaysystem.touchpanel2tpkernel failed with error Error Domain=OSSystemExtensionErrorDomain Code=8 "(null)"."
I search the description of the error code is OSSystemExtensionErrorCodeSignatureInvalid.

Has anyone encountered this problem? How can I solve this problem?
Have you notarised the app? In general, sysexes must be notarised to run when SIP is enabled.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Thanks, Problem has been solved
Load DriverKit and error = OSSystemExtensionErrorDomain Code=8
 
 
Q