热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

iOSKeychain访问和配置文件-iOSKeychainaccessandProvisioningProfiles

JustcameacrossthisonappleKeychainServicesConcepts刚刚在AppleKeychainServicesConcepts上遇到过这个问

Just came across this on apple Keychain Services Concepts

刚刚在Apple Keychain Services Concepts上遇到过这个问题

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.

注意:在iPhone上,Keychain权限取决于用于签署应用程序的配置文件。确保在不同版本的应用程序中始终使用相同的配置文件。

I also know that provisioning profiles can change for many reasons, including adding a new functionality like push notification, adding watch support, or even adding a new team member.

我还知道配置配置文件可能会因多种原因而发生变化,包括添加推送通知,添加手表支持,甚至添加新的团队成员等新功能。

Now am I correct to assume that whenever above changes occur, new versions of my app will no longer be able to access keychain items that were created with previous versions?

现在,我是否正确地假设每当发生上述变化时,我的应用程序的新版本将无法再访问使用以前版本创建的钥匙串项目?

Thanks!

谢谢!

2 个解决方案

#1


1  

You are completely WRONG. The Keychain Acces only depends on the bundle identifier of your application and the profile which was first used to create the app. If it would depend of your code-provisioning profiles changes, indeed what you said would be correct, but if so, the bussinesses and the enterprises would be totally unable to develop updates for their applications, which would have also included the old info stored in the Keychain. That's because in a bussiness, people come and leave often!

你完全错了。 Keychain Acces仅取决于应用程序的包标识符以及最初用于创建应用程序的配置文件。如果它取决于您的代码配置配置文件更改,实际上您所说的是正确的,但如果是这样,企业和企业将完全无法为其应用程序开发更新,这也包括存储在其中的旧信息钥匙扣。那是因为在商业中,人们经常来这里离开!

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.

注意:在iPhone上,Keychain权限取决于用于签署应用程序的配置文件。确保在不同版本的应用程序中始终使用相同的配置文件。

Apple said, but you didn't understand that just right. You can add a team member, add push notification services and so on, as long as the provisioning profile stays the same!

Apple说,但你不明白这是正确的。只要配置文件保持不变,您就可以添加团队成员,添加推送通知服务等等!

NOTE:

If you change the provisioning profile just to add a team member, yes, your assumption is right, but it just isn't the best way of doing this!

如果您更改配置文件只是为了添加团队成员,是的,您的假设是正确的,但这不是最好的方法!

TUTORIAL (on how to add a team member to a provisioning profile)

[https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html

[https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html

#2


1  

keychain directly depepds on Bundle id , if bundle id remain same then your app can acess keychain , so provisioning profile should map the same bundle id if app needs to acccess keychain.

keychain直接取决于Bundle id,如果bundle id保持不变,那么你的app可以访问keychain,因此如果app需要访问keychain,配置文件应映射相同的bundle id。


推荐阅读
author-avatar
幸运的anan本人
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有