I called NSPersistentCloudKitContainer multiple times in a controller, and the same problem occurred.
After modifying the code, the instance was created only once, and then called multiple times, the problem was solved.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: