I'm trying to adapt this example to use it in iPadOS: https://developer.apple.com/library/archive/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/USBDevInterfaces.html#//apple_ref/doc/uid/TP40002645-BBIDDHCI
I'm particularly having problem when I try to use IOUSBDeviceInterface.
I'm importing #include <IOKit/IOKitLib.h>
But when I'm trying to have a method like this:
IOReturn ConfigureDevice(IOUSBDeviceInterface **dev)
I've get the error:Unknown type name 'IOUSBDeviceInterface'
I'm using Xcode - Version 14.0 beta 3 (14A5270f)
Any ideas? Thanks