iPhone内存压力导致iOS Keychain数据丢失? [英] iOS Keychain Data Lost Upon iPhone Memory Pressure?

查看:762
本文介绍了iPhone内存压力导致iOS Keychain数据丢失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iPhone 5s上通过调试器运行iOS应用程序。我正在使用钥匙串存储密码(我使用Apple的KeychainItemWrapper示例来存储和检索我的钥匙串项目)。大约99.99%的时间,钥匙串检索工作完美。但是,有两种情况我的应用程序无法获取密码。例如,曾经,我的手机遇到内存压力,我不得不重新启动手机并重新启动应用程序。应用程序重新启动后,我的应用程序无法再从钥匙串中检索密码。我想知道这个密码丢失是否是由这个内存压力引起的? iOS清除钥匙串数据还有哪些其他情况?有没有办法提出这个?

I'm running an iOS app via a debugger on my iPhone 5s. I'm using the keychain to store a password (I'm using the KeychainItemWrapper example from Apple to store and retrieve my keychain items). About 99.99% of the time, the keychain retrieval works perfectly. However, there have been two cases in which my application could not get the password. For example, once, my phone was experiencing memory pressure and I had to restart the phone and relaunch the app. Upon the app relaunch, my app could no longer retrieve the password from the keychain. I wonder if this password loss was caused by this memory pressure? What other cases does iOS purge keychain data? Is there any way to present this??

推荐答案

你可能找不到临时值,正如你在这个问题中看到的那样: KeychainItemWrapper未在iOS 9 OSStatus -34018上加载( errSecMissingEntitlement)和苹果论坛上的相关问题: https://forums.developer。 apple.com/thread/4743

You could probably not found the value temporary, as you can see in this question: KeychainItemWrapper not getting loaded on iOS 9 OSStatus -34018 (errSecMissingEntitlement) and the related question on apple's forum: https://forums.developer.apple.com/thread/4743

这篇关于iPhone内存压力导致iOS Keychain数据丢失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆