Skip to content

Enabling local datastore causes constant PFConsistencyAssert #57

Description

@simpleshadow

(Hello!? Anyone home? 👀)

I've been using Bolts-Swift for a bit but recently enabled the local datastore in the Parse SDK to be able to pin models locally. Now Bolts-Swift is constantly throwing the following assert:

PFConsistencyAssert(existing == nil || existing == object,
                           @"Attempted to change an objectId to one that's already known to the OfflineStore.");

I'm not quite sure how to work around this. It seemed when I called TaskCompletionSources asyncly in a DispatchQueue, the complaint went away, but this brought other problems so I'd rather not do that.

Any ideas what's going on and how to handle?

Thanks! 🤓👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions