Ref: From Apple's USBNotificationExample.c
The following line of code:
res = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID *)&privateDataRef->deviceInterface);
Works fine in Xcode 9.4.1 but in Xcode 10.0 beta 6 I receive "couldn't create a device interface (80000004)" error message for all devices.
This issue occurs on macOS High Sierra 10.13.6.
Interestingly enough I do not have this issue on another machine running macOS Mojave 10.14 Beta 7 and Xcode 9.4.1 or Xcode 10.0 beta 6.