我的应用程序中有以下代码片段。
CFTypeRef result = nil;
OSStatus userPresenceStatus = SecItemCopyMatching((__bridge CFDictionaryRef)query, &result);
SecItemCopyMatching 返回 -25300。它发生在一些 iPhone 6 设备上,但不是在所有设备上。这个代码是什么意思?可能是什么原因?
谢谢你的建议 弗兰克
最佳答案
Error 25300
is errSecItemNotFound
, which means that there is no such item in your key chain .
你可以找到a list of potential result codes for Keychain Services here .
我猜您尝试匹配的钥匙串(keychain)项在该特定设备上不存在。
关于ios - SecItemCopyMatching 返回 -25300,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31377431/