如何测试通过AppStore的更新后访问钥匙串的财产? [英] How do I test access to a keychain property after update via the AppStore?

查看:176
本文介绍了如何测试通过AppStore的更新后访问钥匙串的财产?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Keychain服务编程指南它规定如下:

In the Keychain Services Programming Guide it states the following:

在iPhone上,钥匙扣权利取决于用于应用程序签名的配置文件。一定要坚持使用不同版本的应用程序相同的配置文件。

"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."

这点我有没有问题,但我想测试一下,如果我提供了一个更新我在AppStore的应用程序,它仍然能够访问存储在钥匙串旧值。我已经通过更新与包含同捆ID和产品名称与原始一个特设的分布曲线签署一个版本的应用程序试图测试,但它不能在钥匙串访问旧值。

Which I have no problem with but I would like to test that if I provide an update to my app in the AppStore that it will still be able to access the old values stored in the keychain. I have tried to test by updating the app with a version signed with an ad-hoc distribution profile that contained the same bundle id and product name as the original but it could not access the old value in the keychain.

是将更新提交给AppStore的,希望它会成功的唯一选择?

Is the only option to submit the update to the AppStore and hope that it will work?

推荐答案

这是一个很好的问题。

其中一个主要的原因,你可能要存储一些数据在钥匙串是prevent恶意用户访问它。这是对自己相当干燥的句子,所以我建议你阅读的有关如何有人可能会访问该数据

One of the main reason why you might want to store some data in the keychain is to prevent malicious users from accessing it. This is quite a dry sentence on its own so I recommend reading about how someone might access that data.

访问钥匙串数据的另一种方法是使用相同的应用程序ID作为目标应用程序恶意应用程序。苹果通过要求供应配置文件是相同的已获得该路由。

Another way to access keychain data would be to create a malicious app with the same app ID as the target app. Apple have secured this route by requiring the provisioning profile to be the same.

因此​​,要回答你的问题,你只能从同一个供应配置文件,即测试中更新钥匙串数据。

So, to answer your question, you can only test the keychain data in update from the same provisioning profile, i.e.


  1. 特设为Ad hoc

  2. 应用程序商店应用程序商店。

应用程序商店应用程序商店是不是真的,因为这将是为时已晚,届时(你的更新将在市场上)的选项。因此,你需要删除App Store应用并安装一个特设的版本。然后重新创建数据钥匙扣上,然后更新到最新的临时版本,并测试它的工作。

App store to app store is not really an option since it will be too late by then (your update will be on the market). So instead you need to delete your app store app and install an ad hoc version. Then recreate your data on the keychain, then update to the latest ad hoc version and test that it worked.

当然,这需要你有应用程序多数民众赞成的存档特设版目前在App Store上。如果没有这个,那么它不可能测试更新。

Of course this requires you to have an archived ad hoc version of the app thats currently on the app store. If you don't have this, then its not possible to test an update.

这篇关于如何测试通过AppStore的更新后访问钥匙串的财产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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