LAContext evaluateAccessControl not supported in simulator?

When I try calling

evaluateAccessControl
on an LAContext in the iOS simulator I get an LAError with the localizedDescription: "This call is not supported in Simulator" (code -1000).


Is

evaulateAccessControl
simply not supported in the simulator?


For reference I created the

SecAccessControl
which I'm evaluating with
kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
protection and
[.userPresence, .privateKeyUsage]
flags. I'm passing
.useKeySign
as the operation param for
evaluateAccessControl
.

I ran into the same issue, however in my case I didn't pass

.privateKeyUsage
when creating the ACL and was using
.createItem
when evaluating it.


As it turns out the sample code exhibits the same behaviour if built with Xcode 9.3 and run on an iOS 11.3 Simulator: The "Add item (TouchID and password)" test returns the exact same error you described. The README.md, however, states "This sample does not support the simulator.".


As a matter of fact I still can't quite get my head around what

evaluateAccessControl:operation:localizedReason:reply:
is actually useful for.
LAContext evaluateAccessControl not supported in simulator?
 
 
Q