Post

Replies

Boosts

Views

Activity

Reply to Problem with DriverKitUserClientSample
Yay, it's working now. I was still getting the Failed opening connection to dext with error: 0xe00002e2 error in Xcode console when clicking on "Communicate With Dext" button but it was because the iterator in DeviceAdded found two devices, the first one connected without error and the second one returned the connection error. It took me a little while to figure out that I made two Dext based on the same example code and they conflicted with one another, so I deleted them both from the Driver Extensions window and now was getting the error The operation couldn't be completed (OSSystemExtensionErrorDomain error 4.) when trying to reinstall it. I needed to reboot for the uninstallation to complete and now everything is fine. Thanks.
Topic: App & System Services SubTopic: Drivers Tags:
Nov ’25
Reply to Provider entitlements check failed
Yes I have added the DriverKit PCI (development) capability and my provisionprofile does show a com.apple.developer.driverkit.transport.pci with IOPCIPrimaryMatch = "0xFFFFFFFF&0x00000000" when looking at it in finder. When I write the entitlements file with Xcode, it automatically write it as this when looking at the file with a text editor. <key>com.apple.developer.driverkit.transport.pci</key> <array> <dict> <key>IOPCIPrimaryMatch</key> <string>0xFFFFFFFF&amp;0x00000000</string> </dict> </array> So I think it is correct. I did stumble upon the bundle ID limit a couple of days ago when I was trying to make the DriverKitUserClientSample example to work, which still I haven't been able to. I have another post for it which is awaiting further help if you can take a look at it (Problem with DriverKitUserClientSample). Thanks
Topic: App & System Services SubTopic: Drivers Tags:
Nov ’25
Reply to Provider entitlements check failed
I tried with your entitlement is it still fails with Entitlements check failed: kernel DK: mydrv-0x10003fae7: provider entitlements check failed kernel DK: IOUserServer(com.mycompany.mydrvApp.mydrv-0x10003fae7)-0x10003faf1::exit(Entitlements check failed) Before I file a bug report, does the info.plist need an entry that matches the entitlement? Thanks
Topic: App & System Services SubTopic: Drivers Tags:
Nov ’25
Reply to Problem with DriverKitUserClientSample
Thanks ssmith_c, I tried your suggestions to run from /Applications and did not change the behavior, I'm still not able to communicate with the Dext. I had already changed the Product Bundle Identifier, I'm my case, when I select my Team the ${SAMPLE_CODE_DISAMBIGUATOR} got replaced by -SAMPLE_CODE_DISAMBIGUATOR- in the Bundle Identifier name. If I change it back to ${SAMPLE_CODE_DISAMBIGUATOR}, it changes back automatically to -SAMPLE_CODE_DISAMBIGUATOR-, so the output file really contains 'SAMPLE_CODE_DISAMBIGUATOR' in it, not what it is supposed to refer to. I also tried with ${DEVELOPMENT_TEAM} and it does the same thing. I ended up by simply adding TEST at the end... Regards
Topic: App & System Services SubTopic: Drivers Tags:
Nov ’25
Reply to Problem with DriverKitUserClientSample
Yes I already saw and followed the post and I'm still having issues. My problem is not the build, it's the connection at runtime. Here is the console log when I'm clicking on "Communicate with Dext" button: default 10:00:51.839911-0500 kernel NullDriver Base - NewUserClient() default 10:00:51.839963-0500 kernel NullDriver UserClient - init() default 10:00:51.840010-0500 kernel NullDriver UserClient - init() - Finished. default 10:00:51.840014-0500 kernel NullDriver Base - NewUserClient() - Finished. default 10:00:51.840110-0500 kernel NullDriver UserClient - Start() - Finished. default 10:00:51.840138-0500 kernel DK: NullDriverUserClient-0x100007a7d:UC failed userclient-access check, needed bundle ID com.example.apple-samplecode.dext-to-user-client-2-TEST.driver default 10:00:51.840459-0500 kernel NullDriver UserClient - Stop() default 10:00:51.840481-0500 kernel NullDriver UserClient - Stop() - Cancels started, they will stop the dext later. default 10:00:51.840512-0500 kernel NullDriver UserClient - Stop() - Finished. default 10:00:51.840519-0500 kernel NullDriver UserClient - free() I tried adding com.apple.security.temporary-exception.iokit-user-client-class to DriverKitSampleApp.entitlements, SIP is disabled, developer mode is on, but nothing helped. Thanks
Topic: App & System Services SubTopic: Drivers Tags:
Nov ’25