I've encountered strange crash while using SecKeyCreateRandomKey on iOS 13.4 and 13.5 simulators.
I've used that to generate a private key that will stored in Secure Enclave. I think the crash happen on this attribute (needed to store the key to the Secure Enclave).
kSecAttrTokenID as String: kSecAttrTokenIDSecureEnclave,
I've tried enabling Swift Error Breakpoint, Exception Breakpoint, Symbolic Breakpoint, activating address sanitizer and zombie objects but I don't still get any useful information.
This is the repo to reproduce the crash (Make sure you choose iOS 13 simulators) https://github.com/jeffersonsetiawan/SecureEnclaveCrash/
Thank you.