---
title: "Comment by Ivan Amakhin on \"How to migrate NSPersistentCloudKitContainer to App Groups\" | Hashnode"
description: "You should reset context before destroy container to don't get crash. Cannot attach stack overflow link but you can find core data error \"Core data crash when r"
url: "https://hashnode.com/posts/how-to-migrate-nspersistentcloudkitcontainer-to-app-groups/647a051fed1f885a817b70ce/comment/692fca08e3747d7abd0bc704"
---

[Discussion](https://hashnode.com/posts/how-to-migrate-nspersistentcloudkitcontainer-to-app-groups/647a051fed1f885a817b70ce)

Comment [How to migrate NSPersistentCloudKitContainer to App Groups](https://hashnode.com/posts/how-to-migrate-nspersistentcloudkitcontainer-to-app-groups/647a051fed1f885a817b70ce)

[Ivan Amakhin](https://hashnode.com/@hoxel)

[Dec 3, 2025](https://hashnode.com/posts/how-to-migrate-nspersistentcloudkitcontainer-to-app-groups/647a051fed1f885a817b70ce/comment/692fca08e3747d7abd0bc704)

You should reset context before destroy container to don't get crash.

Cannot attach stack overflow link but you can find core data error

"Core data crash when resetting the store: 'Object's persistent store is not reachable from this NSManagedObjectContext's coordinator'"
