After updating to xcode 10.1, IOCFPlugInInterface's QueryInterface returns an error, HRESULT = -2147483644.
I haven't been able to find any documentation on this error code... I'm totally stumped.
Any suggestions are appreciated!
After updating to xcode 10.1, IOCFPlugInInterface's QueryInterface returns an error, HRESULT = -2147483644.
I haven't been able to find any documentation on this error code... I'm totally stumped.
Any suggestions are appreciated!
That error translates to 0x80000004, which is defined in
<CoreFoundation/CFPlugInCOM.h>
as
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:
https://forums.developer.apple.com/thread/107369
You probably need to switch to use kIOUSBInterfaceInterfaceID650 instead of kIOUSBInterfaceInterfaceID