Awesome Open Source
Awesome Open Source


USBDeviceSwift - is a wrapper for IOKit.usb and IOKit.hid and IOKit.serial written on pure Swift that allows you convenient work with USB devices.

Working with IOKit.usb and IOKit.hid and IOKit.serial on Swift is a pain. A lot of not converted C code, pointers make your life harder. This library provides basic connect/disconnect events, converted functions to send and receive requests and examples.

Getting Started


  • Mac OS X 10.10
  • Xcode 8+
  • Swift 4



CocoaPods is a dependency manager for Cocoa projects.

Specify USBDeviceSwift into your project's Podfile:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'testusb' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks

# Pods for testusb

pod 'USBDeviceSwift'


Then run the following command:

$ pod install

Swift Package Manager

Swift Package Manager

import PackageDescription

let package = Package(
    name: "Example project",
    dependencies: [
        .Package(url: "", majorVersion: 1),


You will find all examples on Wiki page here


This project is licensed under the MIT License - see the file for details

Change Log

This can be found in the file.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (7,809
macos (1,806
osx (333
usb (121
cocoa (82
serial-ports (20
usb-devices (19