我可以通过 SDK 在 iPhone 应用程序中使用钥匙串吗?
我正在编写一个 SDK,它将作为静态库提供。我可以访问钥匙串来存储数据,以便可以在另一个也有我的库的应用程序中检索它吗?看起来苹果会对此不高兴,因为我没有签署这些应用程序,而只是应用程序代码中的一个乘客。
正在考虑使用“SFHFKeychainUtils”来帮助实现这一点。有什么想法吗?
I am writing an SDK which will ship as a static library. Can I access the keychain to store data so that I can retrieve it in another app which also has my library? Seems like Apple would frown upon this, since I did not sign the apps, but am merely a passenger in the app's code.
Was looking at using "SFHFKeychainUtils" to help implement this. Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,钥匙串只能在具有相同 Bundle Seed ID 的应用程序之间共享(正如您所说,这将在签名级别进行控制)。因此,唯一能够共享钥匙串访问的应用程序是来自任何单个开发人员的应用程序。跨开发者共享是行不通的。
在 Apple 文档中查看更多 iOS 安全信息。
AFAIK, the keychain can only be shared across apps with the same Bundle Seed ID (which would be controlled at the signing level, as you say). As such, the only apps that would be able to share keychain access would be apps from any single developer. Cross-developer sharing is a no-go.
Check out more iOS security info here in Apple's docs.