我已经在我的swift 3项目中安装了SwiftKeychainWrapper。
我使用以下方法保存给定键上的值:
let saveSuccessful: Bool = KeychainWrapper.standard.set("hello", forKey: "world")
当检查布尔变量的结果时,结果为false。
当我尝试检索上面键的值时,如下所示:
KeychainWrapper.standard.string(forKey: "world")
结果当然是nil
你知道我做错了什么吗?
xCode在此过程中未检测到任何错误。
谢谢你的帮助。
刚刚在项目目标的功能选项上激活了Keychain共享,现在正在工作