xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

unable to authenticate with Apple ID using hardware two-factor key (Yubikey)

Open drmarkpowell opened this issue 2 years ago • 4 comments
trafficstars

Running xcodes 1.3.0 on Ventura 13.2.1, getting a login error with my Apple ID. It is configured to use a hardware key for authentication.

xcodes install 14.3 Beta 2 --experimental-unxip
Apple ID: <[email protected]>
Apple ID Password: xxxxxx
The operation couldn’t be completed. (DecodingError.keyNotFound(CodingKeys(stringValue: "securityCode", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"securityCode\", intValue: nil) (\"securityCode\").", underlyingError: nil)))
The operation couldn’t be completed. (DecodingError.keyNotFound(CodingKeys(stringValue: "securityCode", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"securityCode\", intValue: nil) (\"securityCode\").", underlyingError: nil)))

drmarkpowell avatar Mar 15 '23 05:03 drmarkpowell

Same here!

leobartowski avatar Mar 31 '23 15:03 leobartowski

Using an app-specific password doesn't work either.

ideologysec avatar Apr 10 '23 03:04 ideologysec

Same bug in the GUI app: https://github.com/XcodesOrg/XcodesApp/issues/357

jaanus avatar Apr 24 '23 19:04 jaanus

This was closed via a pull request, but the PR just reports an error, it doesn't resolve the issue.

Is this WONTFIX?

ideologysec avatar Feb 16 '24 15:02 ideologysec

I'm not sure if this is the right issue for this, but I still can't authenticate with Yubikey 5C. I get to the PIN prompt, and when I connect and touch the key, I get the following error:

An error occured The operation couldn't be completed (LibFido2Swift.FIDO2Error error 0)

Image

After clicking Dismiss, the workflow gets stuck in this state:

Image

This makes the app unusable

buresdv avatar Apr 07 '25 19:04 buresdv

Looks like the error message was updated, but hardware key authentication still isn’t supported. Hoping to see support for this in a future release!

$ xcodes install 16.4
Apple ID Password (****@example.com):
Account uses a hardware key for authentication but this is not supported yet.
Account uses a hardware key for authentication but this is not supported yet.

acevif avatar Jun 26 '25 01:06 acevif

@buresdv This repo is for xcodes(cli), so I think your issue might be better suited for the Xcodes App (GUI) repo: https://github.com/XcodesOrg/XcodesApp/issues

acevif avatar Jun 26 '25 01:06 acevif