First time working with DEXT, so I'm trying to make "Communicating between a DriverKit extension and a client app" sample project to work and I'm having trouble.
I'm following the steps for "Automatically manage signing". It seems that the step “Sign to Run Locally” is wrong now, so I let it to Apple Developer.
Now I have a Provisioning Profile error that says it doesn't include the com.apple.developer.driverkit.allow-any-userclient-access entitlement.
If I go to Certificates, Identifiers and Profiles for this AppID and go to Capability Requests and select DriverKit Allow Any UserClient Access, this bring me to a page where I select DriverKit Entitlement but Any UserClient Access is not a choice. I tried asking for UserClient Access but the request has been denied saying that the engineering team does not think these entitlements are necessary for testing locally. So I removed com.apple.developer.driverkit.allow-any-userclient-access from NullDriver.entitlements. I can now install the DEXT but when I try "Communicate with Dext" button, I received the error: Failed opening connection to dext with error: 0xe00002e2.
Looking in the console, I see this error message: DK: NullDriverUserClient-0x10000ad6a:UC failed userclient-access check, needed bundle ID com.example.apple-samplecode.dext-to-user-client-2-TEST.driver
I tried many things, but I can't seem to be able to pass through the check to allow the application to communicate with the dext. What am I missing?
Note that I'm focusing only on macOS, not iOS.
Thanks.
Can you file a bug on this and post the bug number back here? I think the right solution here is to add a dev-only variant of "com.apple.developer.driverkit.allow-any-userclient-access", but it would be helpful if I had a developer bug on this issue.
Actually, don't bother with that. Thanks to some excellent help from the team responsible who manages the developer portal the new entitlement:
DriverKit Allow Any UserClient (development)
...is now live. Add that to your DEXT, at it will accept connections from "any" app but, of course, only in development.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware