iTunes/iCloud 是否备份了钥匙串密码?

Is a keychain password backed up by iTunes/iCloud?

我一直无法在官方文档中找到明确的答案。

kSecAttrAccessible 是否会影响 class kSecClassGenericPassword 的钥匙串项的备份方式?

只有 kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly 明确声明该项目未备份。 AFAICS,kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly 使其明确的唯一原因是因为它是设计使然。

这是否意味着是否备份 kSecClassGenericPassword 是一个实现细节,因此可能会发生变化?

强调我的。

iCloud Backup acts like an iTunes backup without a password: the keychain items are included in the backup but they are wrapped with a device-specific key. Thus, they can only be restored to the device that originally backed them up, which means that they get lost when you restore the backup to a different device

奎因“爱斯基摩人!”
Apple 开发者关系、开发者技术支持、核心 OS/Hardware

参考:https://forums.developer.apple.com/message/282490#282490