Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent"

Hi devs!!!

Calling createCredentialRegistrationRequestWithChallenge returns the following error:

Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent" UserInfo={NSDebugDescription=connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent}

What can be the potential reason?

It's hard to say what's going on here without additional information. Can you file this through Feedback Assistant? To provide the most useful information: reproduce the issue, trigger a sysdiagnose shortly after, then attach the sysdiagnose and note the time when you hit the issue in the feedback. Feel free to share the feedback number here. We'll happily take a look :)

Did you find a solution? I have the same issue

I had this same error, but it was caused by switching to a different webauthn library in the backend server. The new library encodes things slightly differently which I think doesn't play nicely with AuthenticationServices.

Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent"
 
 
Q