AudioDriverKit example code Open User Client failure

Hello,

I'm trying to test the example code for the AudioDriverKit and the "Open User Client" button returns a kIOReturnNotPermitted error. Using the standard entitlements that come with the example and I'm signing to run locally. SIP is disabled and I'm using

systemextensionsctl developer on

When the "Open User Client" button is pressed, I see the following calls into the dext:

SimpleAudioDriverUserClient::init
SimpleAudioDriverUserClient::Start
SimpleAudioDriverUserClient::Stop
SimpleAudioDriverUserClient::free

None return any errors.

Seems like this is a permission issue, but since this is just the straight example code, it seems like it should work out-of-the-box. Any clues as to why this is failing?

Thank you!

Replies

For those of you looking at this with the same problem, the answer was to add:

	<key>com.apple.security.temporary-exception.iokit-user-client-class</key>
	<array>
		<string>IOUserUserClient</string>
	</array>

to the application's entitlement file. Apple is still trying to figure out why the example code didn't work "out-of-the-box".

Thanks!

I have this exact same issue. I added the lines to the entitlement file, but it did not resolve the issue. I am on Ventura 13.4 M1 Mac, Xcode 14.3.1