用户换手机,用iCloud或iTunes,将数据同步到了新手机。realm数据库同步了过来。
但是,保存在keychain中的realm密码,按苹果的说法,keychain在备份时,虽然会被
备份,但是只能恢复到原设备上。结果就导致数据库的密码没有同步过来。
这样有密码的realm的数据库就没有办法打开了。
https://forums.developer.apple.com/thread/45940
While the user’s keychain database is backed up to iCloud, it remains protected by a UID-tangled key. This allows the keychain to be restored only to the same device from which it originated, and it means no one else, including Apple, can read the user’s keychain items.
PDF iOS Security - Apple
但是,保存在keychain中的realm密码,按苹果的说法,keychain在备份时,虽然会被
备份,但是只能恢复到原设备上。结果就导致数据库的密码没有同步过来。
这样有密码的realm的数据库就没有办法打开了。
https://forums.developer.apple.com/thread/45940
While the user’s keychain database is backed up to iCloud, it remains protected by a UID-tangled key. This allows the keychain to be restored only to the same device from which it originated, and it means no one else, including Apple, can read the user’s keychain items.
PDF iOS Security - Apple