IOCreatePlugInInterfaceForService returning 0xe00002be

Calling IOCreatePlugInInterfaceForService in macOS 10.15 Beta (19A471t) returns 0xe00002be (kIOReturnNoResources). It has been working fine on previous versions of macOS including High Sierra and Mojave.


My codes is pretty much the same as "Listing 2-3 Accessing and programming the raw device" in the "USB Device Interface Guide" from the Apple documentation.

Replies

Just a few more points on this issue.


* It only happens when plugging in or removing a device (ok when first iterating USB devices)

* It generates the following errors:

- Cannot find factory <CFUUID 0x6000002ccb20> 4547A8AA-9EF3-11D4-A9BD-000A27052861

- IOCreatePlugInInterfaceForService failed for device '********' (kr=0xe00002be)

* I've tried adding USB entitlement (com.apple.security.device.usb) to the application

* I've tried multiple interfaces such as:

- kIOUSBDeviceInterfaceID

- kIOUSBDeviceInterfaceID650

- kIOUSBDeviceInterfaceID942

- I've tried turning SIP off


Perhaps it's a bug in the Catalina beta?

Hi Headsoft, did you get any resolution on this issue?

Hi Headsoft, this seems to be fixed in the latest macOS Catalina (19A536g) beta release