Closed phlippieb closed 5 months ago
After adding CloudKit, I get the following output in console when running on my device:
CoreData: debug: CoreData+CloudKit: -[PFCloudKitOptionsValidator validateOptions:andStoreOptions:error:](36): Validating options: <NSCloudKitMirroringDelegateOptions: 0x3010e5e60> containerIdentifier:iCloud.dev.phlippieb.DailyBudgetApp.container databaseScope:Private ckAssetThresholdBytes:<null> operationMemoryThresholdBytes:<null> useEncryptedStorage:NO useDeviceToDeviceEncryption:NO automaticallyDownloadFileBackedFutures:NO automaticallyScheduleImportAndExportOperations:YES skipCloudKitSetup:NO preserveLegacyRecordMetadataBehavior:NO useDaemon:YES apsConnectionMachServiceName:<null> containerProvider:<PFCloudKitContainerProvider: 0x3020e1870> storeMonitorProvider:<PFCloudKitStoreMonitorProvider: 0x3020e18a0> metricsClient:<PFCloudKitMetricsClient: 0x3020e18b0> metadataPurger:<PFCloudKitMetadataPurger: 0x3020e18c0> scheduler:<null> notificationListener:<null> containerOptions:<null> defaultOperationConfiguration:<null> progressProvider:<NSPersistentCloudKitContainer: 0x3037ba840> test_useLegacySavePolicy:YES archivingUtilities:<PFCloudKitArchivingUtilities: 0x3020e18d0> bypassSchedulerActivityForInitialImport:NO bypassDasdRateLimiting:NO
storeOptions: {
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
NSPersistentCloudKitContainerOptionsKey = "<NSPersistentCloudKitContainerOptions: 0x3001cf9d0>";
NSPersistentHistoryTrackingKey = 1;
NSPersistentStoreMirroringOptionsKey = {
NSPersistentStoreMirroringDelegateOptionKey = "<NSCloudKitMirroringDelegate: 0x301de0870>";
};
NSPersistentStoreRemoteChangeNotificationOptionKey = 1;
}
CoreData: debug: CoreData+CloudKit: -[NSCloudKitMirroringDelegate observeChangesForStore:inPersistentStoreCoordinator:](423): <NSCloudKitMirroringDelegate: 0x301de0870>: Observing store: <NSSQLCore: 0x101724130> (URL: file:///var/mobile/Containers/Data/Application/4F7A92D1-7475-4D0A-A894-9316048FAD76/Library/Application%20Support/default.store)
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _setUpCloudKitIntegration:](584): <NSCloudKitMirroringDelegate: 0x301de0870>: Successfully enqueued setup request: <NSCloudKitMirroringDelegateSetupRequest: 0x3001ac9b0> 710963A5-D4C0-4012-8B7D-DE46E39F7713
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest](3535): <NSCloudKitMirroringDelegate: 0x301de0870>: Checking for pending requests.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(3548): <NSCloudKitMirroringDelegate: 0x301de0870>: Executing: <NSCloudKitMirroringDelegateSetupRequest: 0x3001ac9b0> 710963A5-D4C0-4012-8B7D-DE46E39F7713
Authorization change notification received for all containers
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1232): <NSCloudKitMirroringDelegate: 0x301de0870>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x101724130> (URL: file:///var/mobile/Containers/Data/Application/4F7A92D1-7475-4D0A-A894-9316048FAD76/Library/Application%20Support/default.store)
<CKError 0x302c845d0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62; container ID = "iCloud.dev.phlippieb.DailyBudgetApp.container"; partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x302cbc360: "Server Rejected Request" (15/2000); op = D3B735CF0373526D; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62>
}>
CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1232): <NSCloudKitMirroringDelegate: 0x301de0870>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x101724130> (URL: file:///var/mobile/Containers/Data/Application/4F7A92D1-7475-4D0A-A894-9316048FAD76/Library/Application%20Support/default.store)
<CKError 0x302c845d0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62; container ID = "iCloud.dev.phlippieb.DailyBudgetApp.container"; partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x302cbc360: "Server Rejected Request" (15/2000); op = D3B735CF0373526D; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62>
}>
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2302): <NSCloudKitMirroringDelegate: 0x301de0870> - Attempting recovery from error: <CKError 0x302c845d0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62; container ID = "iCloud.dev.phlippieb.DailyBudgetApp.container"; partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x302cbc360: "Server Rejected Request" (15/2000); op = D3B735CF0373526D; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62>
}>
CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2302): <NSCloudKitMirroringDelegate: 0x301de0870> - Attempting recovery from error: <CKError 0x302c845d0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62; container ID = "iCloud.dev.phlippieb.DailyBudgetApp.container"; partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x302cbc360: "Server Rejected Request" (15/2000); op = D3B735CF0373526D; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62>
}>
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _recoverFromError:withZoneIDs:forStore:inMonitor:](2612): <NSCloudKitMirroringDelegate: 0x301de0870> - Failed to recover from error: CKErrorDomain:15
Recovery encountered the following error: (null):0
CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _recoverFromError:withZoneIDs:forStore:inMonitor:](2612): <NSCloudKitMirroringDelegate: 0x301de0870> - Failed to recover from error: CKErrorDomain:15
Recovery encountered the following error: (null):0
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _finishedRequest:withResult:](3566): Finished request: <NSCloudKitMirroringDelegateSetupRequest: 0x3001ac9b0> 710963A5-D4C0-4012-8B7D-DE46E39F7713 with result: <NSCloudKitMirroringResult: 0x302c84870> storeIdentifier: 0C92B813-2F9C-44F1-AEED-851C66364645 success: 0 madeChanges: 0 error: <CKError 0x302c845d0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62; container ID = "iCloud.dev.phlippieb.DailyBudgetApp.container"; partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ = <CKError 0x302cbc360: "Server Rejected Request" (15/2000); op = D3B735CF0373526D; uuid = D01DBAD5-0DCD-4807-ABAF-484F12BD6B62>
}>
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest](3535): <NSCloudKitMirroringDelegate: 0x301de0870>: Checking for pending requests.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(3551): <NSCloudKitMirroringDelegate: 0x301de0870>: No more requests to execute.
Help here: https://www.hackingwithswift.com/quick-start/swiftdata/how-to-sync-swiftdata-with-icloud
Blocked: need my paid dev account to be registered