I've managed to get this warning once in my own SwiftUI macOS application when adding a single record to core data. However, I wasn't able to replicate it again, which makes it very difficult to debug and find the exact cause. Based on the warning "reentrant operation", I'm guessing it's related to concurrency and possibly a background thread trying to update the UI or some sort of race condition.
If you can replicate this consistently, perhaps do a test by running the core data operation on the main actor, then we'll know for certain what's the cause.
Topic:
Programming Languages
SubTopic:
Swift
Tags: