Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Unable to save #19

Open
smebberson opened this issue Sep 22, 2016 · 1 comment
Open

Unable to save #19

smebberson opened this issue Sep 22, 2016 · 1 comment

Comments

@smebberson
Copy link

smebberson commented Sep 22, 2016

I have the following code to produce a Dictionary for KeyClip:

var serialized: [String: String] {

    var dict = [
        "username": self.username,
        "password": self.password
    ]

    if let accessToken = self.accessToken {
        dict["accessToken"] = accessToken
    }

    if let refreshToken = self.refreshToken {
        dict["refreshToken"] = refreshToken
    }

    return dict

}

I use the following to get KeyClip to save the data:

KeyClip.save("fb-account", dictionary: account.serialized as NSDictionary)

I receive the following error:

[KeyClip] function:save(_:data:failure:) line:77 Error Domain=pw.aska.KeyClip Code=-34018 "Refer to SecBase.h for description (status:-34018)" UserInfo={NSLocalizedDescription=Refer to SecBase.h for description (status:-34018)}

This code used to work fine before Xcode 8, and KeyClip 1.4.0. I was using KeyClip 1.3.4. This occurs running on Simulator iPhone 6 with both iOS 9.0 and 10.0.

Do you have any idea of what is happening?

@smebberson
Copy link
Author

I found this and had to add the Share KeyChain entitlement. It works now.

Could you shed some light on this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant