OK, then I'm Still at a loss.
I just created a brand new project, just in case something is wonky with the other one. Leaving everything XCode managed, this time on my M1 mini instead of my Intel MacBook Pro. SwiftUI app instead of XIB, once again with an activate button and deactivate that make the appropriate OSSystemExtensionRequests. The Second target added via File->New->Target is the DriverKit group's Driver project template. Gave everything the same entitlements as above (though i probably dont need the HID ones, as i'm not even changing the default IOService type or any code in the driver other than adding an entitlements file and setting that file as Code Signing Entitlements under Build Settings->Signing->Code Signing Entitlements.
From everything You have been telling me, that should work, unless i'm just missing something in my frustration.
App runs fine, activating the extension via the app runs fine, but still errors actually running the extension.
systemextensionctl list shows it should be loading:
* * NMX3RG6P6L com.eklynx.TestHidService.TestService (1.0/1) com.eklynx.TestHidService.TestService [activated enabled]
But once again, logging still shows the app is being killed due to code signing.
/Library/SystemExtensions/AC89C292-DA43-407D-9BDF-B832D5BC16F6/com.eklynx.TestHidService.TestService.dext/com.eklynx.TestHidService.TestService not valid: Error Domain=AppleMobileFileIntegrityError Code=-413 "No matching profile found"...
mac_vnode_check_signature: /path/to/com.eklynx.TestHidService.TestService.dext/com.eklynx.TestHidService.TestService: code signature validation failed fatally: When validating /path/to/com.eklynx.TestHidService.TestService.dext/com.eklynx.TestHidService.TestService:
Code has restricted entitlements, but the validation of its code signature failed.
Unsatisfied Entitlements:
proc 15887: load code signature error 4 for file "com.eklynx.TestHidService.TestService"
Error occurred while handling request "DextLaunch(arguments: Optional(["Check In Token": 483, "CFBundleIdentifier": com.eklynx.TestHidService.TestService, "kOSBundleDextUniqueIdentifier": <removed>, "DriverKit Reslide Shared Cache": 0, "Driver Extension Server Name": com.eklynx.TestHidService.TestService, "Driver Extension Server Tag": removed]))": Error Domain=NSPOSIXErrorDomain Code=8 "Exec format error"
Topic:
App & System Services
SubTopic:
Drivers
Tags: