ios - SecItemCopyMatching 返回 -25300

标签 ios objective-c

我的应用程序中有以下代码片段。

    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/

相关文章:

ios - 如何以编程方式在 vine 上上传视频

objective-c - 具有可配置 URL 的 webview

android - Google 登录 iOS 帐户选择器

iphone - UITableView单元格多行对齐

ios - 访问 obj 作为属性与方法参数(样式首选项)

ios - UIImageJPEGRepresentation 占用大量内存

ios - 如何检测滚动到 UICollectionView 中的新部分?

objective-c - 如何使用单独的 viewController 正确设置 NSPopover

ios - 为ios5及更低版本单独设置字体

ios - 确保 iOS 的异步任务已完成