That error translates to 0x80000004, which is defined in
E_NOINTERFACE. I’m not sure what’s going on with your code but the semantics of that are pretty clear: The target plug-in does not support the interface you’ve asked for.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
The IOKit interface changed in 10.14 so if you're using the 10.14 SDK to build with, you need to explicitly use the "old" interface in order to run on older releases. Take a look here:
You probably need to switch to use kIOUSBInterfaceInterfaceID650 instead of kIOUSBInterfaceInterfaceID