有时NSPersistentCloudKitContainer
会在控制台报错,如下所示:
*2020-04-14 16:41:27.725794+0100 ExampleApp[9736:8226377] [error] error: CoreData+CloudKit: -: <NSCloudKitMirroringDelegate: 0x282b944d0>: Sending ‘NSCloudKitMirroringDelegateWillResetSyncNotificationName’ with reason: ‘UserPurgedZone’* [NSCloudKitMirroringDelegate logResetSyncNotification:](1798)
在我的代码中,我在加载持久存储时有错误处理,但是这个错误不会触发它,因为这个错误是在存储加载之后出现的。
我在哪里处理这些错误?如何在代码中看到这些错误?