Post

Replies

Boosts

Views

Activity

Reply to Error when running a modelContext rollback
@ClaytonDeveloper1 maybe you are experiencing this issue : https://forums.developer.apple.com/forums/thread/763898 It happened to me while trying to delete all entities of a specific type with a filter like this : try self.modelContext.delete(model: EntityType.self, where: #Predicate { $0.someCondition == false }) The solution was to fetch all entities with a query and then delete each one individually.
Topic: App & System Services SubTopic: iCloud Tags:
May ’25
Reply to Error when running a modelContext rollback
@ClaytonDeveloper1 maybe you are experiencing this issue : https://forums.developer.apple.com/forums/thread/763898 It happened to me while trying to delete all entities of a specific type with a filter like this : try self.modelContext.delete(model: EntityType.self, where: #Predicate { $0.someCondition == false }) The solution was to fetch all entities with a query and then delete each one individually.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
May ’25