0

Im a beginner in Swift 3.0. Recently i just convert existing swift project to 3.0 swift. After converrted, i have issues storing user& password using key chain wrapper.

i have checked the result of Bool, it just show false and the value is nil.

Can i know the possible causes? thanks for guiding.

//This is how i store
var saveSuccessful:Bool = KeychainWrapper.defaultKeychainWrapper().setString(txt_userId.text!, forKey: "userId")
    let savePass:Bool = KeychainWrapper.setString(txt_password.text!, forKey: "password")

 //this is how i get/retrieve
 var password:String? = KeychainWrapper.stringForKey("password") 
1
  • you are using some library? Commented Nov 10, 2016 at 11:18

1 Answer 1

0

Take a look at my answer here. The problem is that the "Keychain Sharing" capability has to be enabled.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.