Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scott455

macrumors member
Original poster
Jun 5, 2022
40
0
hi,
What are advantages using Libusb vs. Mac's IOKit's USB Lib in creating Mac applications?. What factors play in choosing between the two?.
 
Last edited:

Nygaard

macrumors member
Dec 7, 2022
47
20
Houston
Libusb is built on top of IOKit and (theoretically) makes it easier to port code to other platforms. But you pay for this with another dependency, an increase in bug surface area, and another layer of abstraction.

IOKit gives you more direct control over everything the OS has to offer, especially OS-specific/non-portable features that libusb omits or hamstrings. Also, if libusb isn't working as expected, you might need to debug using IOKit anyway to figure out what is going on.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.