Thank you, that helped indeed in the compilation to succeed. The connection fails though:
The log shows:
sysex didFailWithError: extension category returned error
OK, so that's an install error, not an IOKit issue. Have you configured everything to be signed by the same team? What, if anything, is being printed in the system log?
Also, keep in mind that you DO need to add the “com.apple.security.temporary-exception.iokit-user-client-class” entitlement to your app (NOT the DEXT), as described in this forum post.
I was wondering now, if I should try to fix the Driver Communication example or straight move on to adapt the SimpleAudioDriver example.
That's ultimately up to you, but I would stick with the Driver Communication example and get it working first. One of the lessons I've learned over and over again is that it's MUCH easier to "expand" on something that works vs. making something work from "scratch". This is basically our simplest sample, so I think your best bet is to get it working first.
Unfortunately I don't know where to start. I am a C++ developer by trade and the os specific toolchains are hard to grasp for me.
Welcome to the party... So, a few general pointers and warnings here:
(1)
DriverKit is not well documented and, to be blunt, fairly "weird". It's basically written using the C++ variant IOKit uses (which is straightforward), with a number of complex macros layered on top of it. The result of all that is not always as readable as it could be.
(2).
Using and understanding DriverKit basically requires understanding IOKit, something our documentation never actually says. The good news here is that IOKit actually does have fairly good "foundational" documentation in the documentation archive. Here are a few of the documents I'd take a look at:
__
Kevin Elliott
DTS Engineering, CoreOS/Hardware