libusb on OSX returns less devices

Viewed 31

I have a small xcode project that is mixed with c and Swift. The C side calling libusb_get_device_list returns less number of USB devices than it should. Only few times it returns the correct count. I checked the sandbox USB option ON. Also, disabled the signing. Still see it doing the same thing.

libusb_context *context = NULL;
libusb_device **list = NULL;

count = libusb_get_device_list(context, &list);
0 Answers
Related