Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping memoryStack doesn't recreate persistentStore #398

Closed
Zarakas opened this issue Apr 28, 2017 · 7 comments
Closed

Dropping memoryStack doesn't recreate persistentStore #398

Zarakas opened this issue Apr 28, 2017 · 7 comments

Comments

@Zarakas
Copy link

Zarakas commented Apr 28, 2017

Hey,

in the current version of Sync 3.2.3 dropping a memoryStack via "drop()" results in a DataStack without persistentStore:

Illegal attempt to save to a file that was never opened. "This NSPersistentStoreCoordinator has no persistent stores (unknown). It cannot perform a save operation.". No last error recorded.

Even if I use the completion block an perform mein new inserts after it fires, same result.

Sometimes we need the drop to make sure we have only the case specific data in our memoryStack.

Greetz,

Zarak

@3lvis
Copy link
Owner

3lvis commented Apr 28, 2017

Hi @Zarakas,

In what iOS version are you?

@Zarakas
Copy link
Author

Zarakas commented Apr 29, 2017

Hey @3lvis ,

version is iOS 10.3.2

@kleber11
Copy link

I have the same error. Any ideas?

@3lvis
Copy link
Owner

3lvis commented Sep 19, 2017

@kleber11 could you try this branch? fix/persistent-store-not-recreating

#423

@kleber11
Copy link

@3lvis thanks. It works perfectly! :)

@3lvis
Copy link
Owner

3lvis commented Sep 20, 2017

I'll make a new release with that feature then :)

@3lvis 3lvis closed this as completed Sep 20, 2017
@3lvis
Copy link
Owner

3lvis commented Sep 20, 2017

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

No branches or pull requests

3 participants