I have a project that use secure enclave to encrypt my data, this project minimum supports from iOS 11.
To make sure the stability of my project, I run test, it has a loop to add, get, delete key in secure enclave for 100 iterations.
I found that the secure enclave always failed to add/get key from secure enclave when using iOS device that is iOS 12.x.
It returns error message - The operation couldn’t be completed. (OSStatus error -26276 - Key generation failed, error -26276)
error code -26276 is errSecInternal - An internal error occured in the Security framework.
I tested 23 devices, there are 5 out of 6 failed on iOS 12.x devices, the remaining devices with iOS 11.x, 13.x, 14.x, 15.x do not face this issue.
Why it only happens on iOS 12.x device?