Swift3 Swift 3-SwiftKeychainWrapper:KeychainWrapper.standard.set不持久

Swift3 Swift 3-SwiftKeychainWrapper:KeychainWrapper.standard.set不持久,swift3,keychain,Swift3,Keychain,我已经安装在我的swift 3项目上 我使用以下方法保存给定键上的值: let saveSuccessful: Bool = KeychainWrapper.standard.set("hello", forKey: "world") 检查布尔变量的结果时,它为false 当我尝试检索上面键的值时,如下所示: KeychainWrapper.standard.string(forKey: "world") 结果当然是零 知道我做错了什么吗 xCode在此过程中未检测到任何错误 感谢您的帮助。

我已经安装在我的swift 3项目上

我使用以下方法保存给定键上的值:

let saveSuccessful: Bool = KeychainWrapper.standard.set("hello", forKey: "world")
检查布尔变量的结果时,它为false

当我尝试检索上面键的值时,如下所示:

KeychainWrapper.standard.string(forKey: "world")
结果当然是零

知道我做错了什么吗

xCode在此过程中未检测到任何错误


感谢您的帮助。

刚刚激活了项目目标的功能选项上的钥匙链共享,现在可以使用了