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.

Incrementing and saving do not work properly #177

@harmancode

Description

@harmancode

I am testing my app on my phone via Xcode 13.3.1.

I removeAllKeys upon launch, then set a new integer value for a consumable product.

KeychainWrapper.standard.integer(forKey: productIdentifier) ?? 0

  1. This value is zero (0) when I first read it.
  2. I read it, increment it by one and save it. Then read it again. It reads 2 instead of 1.
  3. If I repeat step 2, I still get 2.

Rebooting the phone changed nothing.

Does anybody experience something similar?

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