Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

XCTestCase: set NewValue return False #176

@javierbc121086

Description

@javierbc121086

Hi, I try save string data on keychain, however, the function set return False.

Any idea ?

I post the code:

    public static var tokenSession: String {
        set {
            KeychainWrapper.standard.set(
                newValue,
                forKey: "sm_token_session_key",
                withAccessibility: .always,
                isSynchronizable: true
            )
        }
        get {
            KeychainWrapper.standard.string(
                forKey: "sm_token_session_key",
                withAccessibility: .always,
                isSynchronizable: true
            ) ?? .empty
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions