importing this package to your Swift code will make C libusb functions available to your Swift code.
- add this package as a dependency to your Xcode project
- add import statement to the top of your file [import USBCore]
- Exports all libusb functions renamed from snake_case to camelCase.
- Exports all libusb types aliased in CamelCase style.
- Packs all library constants and enum values, renamed in CamelCase, in a public Constants structure.
development platform is macOS v14. it should work on earlier versions of macOS >= v12, but tested on v14.
you can use the library functions inside your Swift code and it should look and feel natural because all function have been renamed to camelCase.
you must have libusb installed on your system
[brew install libusb]