应用程序更新后,我保存在钥匙串中的值可以保存吗? [英] Values that I Put in Keychain Can Be Saved After app is updated?

查看:54
本文介绍了应用程序更新后,我保存在钥匙串中的值可以保存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用商店中有一个应用.在我的应用程序"中,我使用钥匙串将一些值(例如:name& surname)保存为加密的.如果我使用xCode更新我的应用程序,则关于值没有问题.它们全都保存在我想要的钥匙串中.但是,如果我将新版本放到应用商店中,并用应用商店中的版本更新了我的应用,我的值都消失了:(如果应用已更新,iOS是否会删除钥匙串中的值?

I have an application in app-store. In My Application I use keychain to save some values(for example: name & surname) as crypted. If I use xCode to update my app , there is no problem about values. They are all saved in keychain as I want. But If I put new version into the app-store and updated my app with the version that is in appstore, My values are all gone :( Does iOS remove the values in keychain if app is updated ?

推荐答案

注意:在iPhone上,钥匙串权限取决于用于对应用程序进行签名的provisioning profile.确保在不同版本的应用程序中始终使用same provisioning profile.

Note: On iPhone, Keychain rights depend on the provisioning profile used to sign your application. Be sure to consistently use the same provisioning profile across different versions of your application.

检查更多信息钥匙串服务编程指南

这篇关于应用程序更新后,我保存在钥匙串中的值可以保存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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