Skip to content

Instantly share code, notes, and snippets.

@hoggren
Last active February 12, 2018 16:48
Show Gist options
  • Save hoggren/ce030b2c426462ed546f5751adc3e149 to your computer and use it in GitHub Desktop.
Save hoggren/ce030b2c426462ed546f5751adc3e149 to your computer and use it in GitHub Desktop.
Unload OSX / macOS smartcard driver
#!/bin/bash
#
# Unload OSX / macOS smartcard driver
# Useful for libnfc
#
# Solves the error:
# ~ $ nfc-list
# nfc-list uses libnfc libnfc-1.7.1-66-g24979c6
# error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
# nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:002
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.ifdreader.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment