Sign in with passkeys on a simulator

Hi Everyone,

Context:

I'm working on allowing my app to log in using passkeys/security keys.

It all works great on a device but it doesn't when I try to log in using the simulator.

Problem:

On the simulator, I can go until the simulator presents the QR code so another device can sign the challenge but the device can't establish a connection with the simulator. I'm assuming the connection can't be established because the simulator does not support Bluetooth, which is a requirement for passkeys.

Question

I'm bound to only develop on a real device from now on? Or is there a way to make passkeys work with the simulator?

Thanks in advance!

Screenshots

SimulatorDevice

Passkeys work on-device in Simulator, but you need to enable biometrics first, since Simulator doesn't support passcode. You can do that in Features > Face ID/Touch ID > Enrolled.

The solution is to create/register a passkey specifically for the simulator. Then we can use that stored passkey without having to do a cross-device sign-in.

Sign in with passkeys on a simulator
 
 
Q