我知道每个应用程序都有自己的钥匙串(keychain),任何其他应用程序都无法访问。 iOS 是如何启用这种“隐私”的?
看一个来自 KeychainAccess 的例子:
let keychain = Keychain(service: "com.example.github-token")
keychain["kishikawakatsumi"] = "01234567-89ab-cdef-0123-456789abcdef"
究竟什么会阻止另一个应用程序运行相同的代码并访问您的 kishikawakatsumi
数据?
最佳答案
来自Keychain Services Apple 文档。
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.
钥匙串(keychain)访问控制
iOS: iOS gives an application access to only its own keychain items. The keychain access controls discussed in this section do not apply to iOS.
关于iOS:Keychain如何保持应用程序隔离?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39135562/