[英]iOS - What does the following LAContext error logs on iOS mean?
我不斷在我的控制台中收到以下日志。
[Client,LAContext] LAContext[5174:1692] will keep returning Error Domain=com.apple.LocalAuthentication Code=-10 "Invalidated due to exceeded number of allocated contexts." UserInfo={NSLocalizedDescription=Invalidated due to exceeded number of allocated contexts.} from now on.
有人能幫忙嗎? 是什么產生這個?
聽起來您正在創建多個LAContext
對象,從我自己對 12 Pro Sim 的測試LAContext
,此錯誤發生在您擁有 65 個尚未失效的LAContext
之后。
LAContext
在被釋放時應該自動失效。 也許您正在 ViewController 中實例化它,並且您的 ViewController 有一個保留周期阻止LAContext
被釋放?
您可以通過在實例上調用invalidate()
來手動使LAContext
invalidate()
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.