I have downloaded PIVToken example from here https://developer.apple.com/library/content/samplecode/PIVToken/Introduction/Intro.html and trying to run it. I have put several breakpoints in the source code, but when I run it from XCode, none of them gets hit. It doesn't look like smartcard extension is properly registered or maybe there's some other problem.
I have YubiKey NEO PIV smart card.
I disabled built-in PIV token as mentioned in the README.md and restarted my machine.
sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array com.apple.CryptoTokenKit.pivtokenBut when I insert YubiKey NEO, I still get SmartCard Pairing popup:
Do you want to connect the inserted SmartCard with the current user?
Card Identity: Certificate for digital signature (Test)
| Do not show again | | Cancel | | Pair |
The README also mentions that the new extension will be automatically installed when the hosting application is installed. Does it mean I need to install the application and not just run it from the XCode?
I'm running macOS Sierra & XCode 8