简体   繁体   English

避免其他应用使用相同框架访问 iOS 中的钥匙串数据

[英]Avoid other apps using the same framework to access the keychain data in iOS

I have a framework which stores data in Keychain.我有一个将数据存储在钥匙串中的框架。 Is there a way what can I do to prevent access to that data from other apps in a device which has more apps using the same framework?有什么方法可以防止设备中的其他应用程序访问该数据,该设备具有使用相同框架的更多应用程序? And can they access it?他们可以访问它吗? I googled a lot but could not find a good answer to this question.我用谷歌搜索了很多,但找不到这个问题的好答案。

Thanks in advance!提前致谢!

That's the default situation.这是默认情况。 Each app has its own access group by default, and things put into Keychain are limited to that access group.默认情况下,每个应用程序都有自己的访问组,放入 Keychain 的内容仅限于该访问组。 The framework isn't relevant, only the app ID (and by extension the access group or groups).框架不相关,只有应用 ID(以及访问组或组的扩展)。

For more on access groups, see Sharing Access to Keychain Items Among a Collection of Apps for how apps (from the same development team) can share Keychain items.有关访问组的更多信息,请参阅在一组应用程序中共享对钥匙串项的访问权,了解应用程序(来自同一开发团队)如何共享钥匙串项。 But the default is that they don't.但默认情况下他们不这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM