It seems like you’re trying to follow the process described in Authenticating Users with a Cryptographic Token. If so, you’re using the wrong command. Here’s the command from that doc:
sudo -u _securityagent /Applications/HostApp.app/Contents/MacOS/HostApp
Note that this is running the app containing your app ex [1], not the app ex itself.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] FYI, the terminology in that doc is incorrect. When talking about app extensions:
This stuff is clearly explained in the App Extension Programming Guide.
I’ve filed a bug to get the CryptoTokenKit doc fixed (r. 86843253).