应用程序卸载后iphone keychain项目是否仍然存在? [英] iphone keychain items persist after application uninstall?

查看:299
本文介绍了应用程序卸载后iphone keychain项目是否仍然存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩idandersen的 scifihifi-iphone 密钥链代码并遇到以下行为 - 我使用设置密码,比如说

I am playing with idandersen's scifihifi-iphone code for keychain and came across the following behavior - I set the password using, say

[SFHFKeychainUtils storeUsername:@"User" andPassword:@"123"
                  forServiceName:@"TestService" updateExisting:YES error:&error];

然后从设备中删除测试应用程序并重新安装 - 之前设置的密码似乎仍保留在钥匙串中。 ..

这是预期的行为吗?有没有办法确保我设置的密码将被应用程序删除?

Then delete test application from device and install it again - the previously set password appears to remain in keychain...
Is it the expected behavior? And is there a way to make sure that password I set will be deleted with the application?

推荐答案

是的,这是预期的和正确的行为。

Yes, this is the expected and correct behavior.

某些钥匙串项目可能与您控制的其他应用程序共享(共享相同的钥匙串项目访问组)。

Some keychain items may be shared with other apps you control (that share the same keychain item access group).

您应该在删除应用时单独保留信息。删除应用时,您没有回复或删除钥匙串项目的方法。

You should just leave the info alone when your app is removed. You have no callback or method of removing the keychain items on deletion of your app.

这篇关于应用程序卸载后iphone keychain项目是否仍然存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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