CloudKit Dashboard

RSS for tag

Monitor and manage the CloudKit database containers used by your apps.

Posts under CloudKit Dashboard tag

88 Posts

Post

Replies

Boosts

Views

Activity

Help with CloudKit
Having trouble using CloudKit. I used this code: let publicDatabase = CKContainer(identifier: "iCloud.XXX.XXXX").database(with: .public) With the correct container instead of "XX" and enabled these capabilities: Background modes: remote notifications enabled iCloud: CloudKit enabled Note this is not the default container - I had to create a new one because the default one is loading incorrectly in the dashboard - "Error loading container details.").  App is not recording records to public iCloud database. Please help, I am new to Swift and Xcode. Here is some debugging (edited to make it shorter): 0..> test_useLegacySavePolicy:YES archivingUtilities:<PFCloudKitArchivingUtilities: 0x..0> storeOptions: { NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; NSPersistentCloudKitContainerOptionsKey = "<NSPersistentCloudKitContainerOptions: 0x2..30>"; NSPersistentHistoryTrackingKey = 1; NSPersistentStoreMirroringOptionsKey = { NSPersistentStoreMirroringDelegateOptionKey = "<NSCloudKitMirroringDelegate: 0x2...c0>"; }; } CoreData: debug: CoreData+CloudKit: <NSCloudKitMirroringDelegate: 0x2...>: Observing store: <NSSQLCore: 0x1...0> CoreData: CloudKit: CoreData+CloudKit: ...<NSCloudKitMirroringDelegate: 0x2....c0>: Successfully enqueued setup request. CoreData: CloudKit: CoreData+CloudKit: ....<NSCloudKitMirroringDelegate: 0x2...0>: Checking for pending requests. CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(2941): <NSCloudKitMirroringDelegate: 0x....6c0>: Executing: <NSCloudKitMirroringDelegateSetupRequest: 0x...7a80> 2022-04-19 11:10:09..00 [Snapshotting] Snapshotting a view (0x10600e400, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES. CoreData: debug: CoreData+CloudKit: ...Skipping migration for 'ANSCKDATABASEMETADATA' because it already has a column named 'ZLASTFETCHDATE' ... CoreData: CloudKit: CoreData+CloudKit: -[PFCloudKitSetupAssistant _checkUserIdentity:]_block_invoke(1235): <PFCloudKitSetupAssistant: 0x28...>: CKIdentity record matches store: <CKRecordID: 0x280...; recordName=_17385bb3..., zoneID=_defaultZone:defaultOwner> 2022-04-19 11:10:10.130670-0400 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1106): <NSCloudKitMirroringDelegate: 0x2833256c0>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x104....610> <CKError 0x2807902a0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = E88D-A....3D7-B4; container ID = "iCloud.XXXX"; partial errors: { com.apple.coredata.cloudkit.zone:defaultOwner = <CKError 0x280797a80: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = 5F3....3571; uuid = E8810E9D-23....3D7-C9....8A7...B4> }>
3
0
2.3k
Apr ’22
BadRequestException: endpoint not applicable in the database type 'sharedb' in CloudKit Dashboard when viewing records of a share accepted
When I query for all the records of a certain record type, and then I click on the record name to view the record, I get this error at the bottom of the window pane that shows the details of the specific record: BadRequestException: endpoint not applicable in the database type 'sharedb' What is "endpoint" referring, what does it mean and what is causing this error message? Here is the part of the schema that defines the two record types involved: RECORD TYPE Group ( "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE QUERYABLE, debugTag STRING QUERYABLE SEARCHABLE SORTABLE, groupData BYTES, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); RECORD TYPE LocalGroupIdentifier ( "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE QUERYABLE, groupReference REFERENCE, localGroupIdentifier STRING QUERYABLE SEARCHABLE, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); The error comes when I view the details of a record of type Group. I use UICloudSharingController and CKModifyRecordsOperation as Apple Documentation shows in the Apple Documentation for UICloudSharingController and Sample Code: Sharing CloudKit Data with Other iCloud Users. It works just fine when I create the CKShare object. When I use the url to accept the share, it works fine except for the error in question, which shows when I view the record of type Group and the record of type LocalGroupIdentifier, which has a reference to the record of type Group. I use exactly one record of type Group and one record of type LocalGroupIdentifier. I used two different simulators with different Apple IDs for sharing and for accepting the share. They are both iPhone 8 with iOS 15.4. The share I create is in the private database, and the share accepted is in the shared database.
0
0
862
Apr ’22
Core Data+CloudKit:No record on CloudKit Dashboard
Hi,everyone I use CloudKit + CoreData to store data. It works normally during the test, but when I log in to CloudKit Dashboard, there is no record here, but there is a record of device access in the log. In addition, the icloud account and development account I used in the test are not the same account. Will this have an impact? Thank you.
1
2
2.7k
Feb ’22
CloudKit: Duplicate notifications for CKQuerySubscriptions
Hello, I'm seeing issues with getting multiple duplicate notifications for the same CKRecord creation when a CKQuerySubscription has been created for them. I have tried to diagnose but don't see anyway I could be generating 10+ duplicates for a single record creation in the public database (also have users, in production, experiencing this same issue). Note: The CKQuerySubscription is created for every new user when they enable notifications and looks only at one when a CKRecord is being created. It also doesn't set a specific subscription ID (not sure if this is the issue or not). Thanks, Camden
2
0
1.4k
Jan ’22
CloudKit Dashboard - Cannot add or update asset items
I've been using CK Dashboard for several years to maintain updates that propagate to user apps. Recently I have had a problem adding or updating any record that has an asset in it. Adding the asset seems to go fine until I hit the "Save" button. Then it comes back with "! Load Failed". This happens every time. I'm using the latest build of Safari in Big Sur 11.6.1. I have searched preferences to see if somehow Safari does not have access permissions, but it does not matter what directory the uploaded file resides in - it fails every time. I can download a record with an asset, but if I change the asset and save, it fails. Saving from a live app in iOS continues to work fine. This seems to be some sort of permission issue, but I am the only user and I have all permissions enabled. Logging out/back in has no effect. This problem exists in both my M1 iMac and M1 MacBook Air (Monterey). Looking for anyone else having the problem before filing a bug.
4
0
1.5k
Jan ’22
Upload operation complete but not found by CKQuery few minutes
My app is backing up / restoring data in the app using CloudKit. I've been using the same code since early 2020, and I've had the problem since a few months ago (around September 2021). The problem is as below. eg) If 30 pieces of data are uploaded using OperationQueue, the upload is completed within a few seconds. No error occurred in operation.perRecordCompletionBlock. Check the number of requested data using the CloudKit console log. However, if i use CKQuery to check the data, 1 or 2 pieces of data are missing for several minutes (approximately 10 minutes). This is the same whether you send a Query from the CloudKit console or use CKQuery using swift code. And after a few minutes, all the data is uploaded. Now, some users are writing this problem in reviews, but I have no way to solve it.
1
0
645
Jan ’22
Help with CloudKit
Having trouble using CloudKit. I used this code: let publicDatabase = CKContainer(identifier: "iCloud.XXX.XXXX").database(with: .public) With the correct container instead of "XX" and enabled these capabilities: Background modes: remote notifications enabled iCloud: CloudKit enabled Note this is not the default container - I had to create a new one because the default one is loading incorrectly in the dashboard - "Error loading container details.").  App is not recording records to public iCloud database. Please help, I am new to Swift and Xcode. Here is some debugging (edited to make it shorter): 0..> test_useLegacySavePolicy:YES archivingUtilities:<PFCloudKitArchivingUtilities: 0x..0> storeOptions: { NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; NSPersistentCloudKitContainerOptionsKey = "<NSPersistentCloudKitContainerOptions: 0x2..30>"; NSPersistentHistoryTrackingKey = 1; NSPersistentStoreMirroringOptionsKey = { NSPersistentStoreMirroringDelegateOptionKey = "<NSCloudKitMirroringDelegate: 0x2...c0>"; }; } CoreData: debug: CoreData+CloudKit: <NSCloudKitMirroringDelegate: 0x2...>: Observing store: <NSSQLCore: 0x1...0> CoreData: CloudKit: CoreData+CloudKit: ...<NSCloudKitMirroringDelegate: 0x2....c0>: Successfully enqueued setup request. CoreData: CloudKit: CoreData+CloudKit: ....<NSCloudKitMirroringDelegate: 0x2...0>: Checking for pending requests. CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(2941): <NSCloudKitMirroringDelegate: 0x....6c0>: Executing: <NSCloudKitMirroringDelegateSetupRequest: 0x...7a80> 2022-04-19 11:10:09..00 [Snapshotting] Snapshotting a view (0x10600e400, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES. CoreData: debug: CoreData+CloudKit: ...Skipping migration for 'ANSCKDATABASEMETADATA' because it already has a column named 'ZLASTFETCHDATE' ... CoreData: CloudKit: CoreData+CloudKit: -[PFCloudKitSetupAssistant _checkUserIdentity:]_block_invoke(1235): <PFCloudKitSetupAssistant: 0x28...>: CKIdentity record matches store: <CKRecordID: 0x280...; recordName=_17385bb3..., zoneID=_defaultZone:defaultOwner> 2022-04-19 11:10:10.130670-0400 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1106): <NSCloudKitMirroringDelegate: 0x2833256c0>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x104....610> <CKError 0x2807902a0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = E88D-A....3D7-B4; container ID = "iCloud.XXXX"; partial errors: { com.apple.coredata.cloudkit.zone:defaultOwner = <CKError 0x280797a80: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = 5F3....3571; uuid = E8810E9D-23....3D7-C9....8A7...B4> }>
Replies
3
Boosts
0
Views
2.3k
Activity
Apr ’22
BadRequestException: endpoint not applicable in the database type 'sharedb' in CloudKit Dashboard when viewing records of a share accepted
When I query for all the records of a certain record type, and then I click on the record name to view the record, I get this error at the bottom of the window pane that shows the details of the specific record: BadRequestException: endpoint not applicable in the database type 'sharedb' What is "endpoint" referring, what does it mean and what is causing this error message? Here is the part of the schema that defines the two record types involved: RECORD TYPE Group ( "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE QUERYABLE, debugTag STRING QUERYABLE SEARCHABLE SORTABLE, groupData BYTES, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); RECORD TYPE LocalGroupIdentifier ( "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE QUERYABLE, groupReference REFERENCE, localGroupIdentifier STRING QUERYABLE SEARCHABLE, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); The error comes when I view the details of a record of type Group. I use UICloudSharingController and CKModifyRecordsOperation as Apple Documentation shows in the Apple Documentation for UICloudSharingController and Sample Code: Sharing CloudKit Data with Other iCloud Users. It works just fine when I create the CKShare object. When I use the url to accept the share, it works fine except for the error in question, which shows when I view the record of type Group and the record of type LocalGroupIdentifier, which has a reference to the record of type Group. I use exactly one record of type Group and one record of type LocalGroupIdentifier. I used two different simulators with different Apple IDs for sharing and for accepting the share. They are both iPhone 8 with iOS 15.4. The share I create is in the private database, and the share accepted is in the shared database.
Replies
0
Boosts
0
Views
862
Activity
Apr ’22
Core Data+CloudKit:No record on CloudKit Dashboard
Hi,everyone I use CloudKit + CoreData to store data. It works normally during the test, but when I log in to CloudKit Dashboard, there is no record here, but there is a record of device access in the log. In addition, the icloud account and development account I used in the test are not the same account. Will this have an impact? Thank you.
Replies
1
Boosts
2
Views
2.7k
Activity
Feb ’22
CloudKit: Duplicate notifications for CKQuerySubscriptions
Hello, I'm seeing issues with getting multiple duplicate notifications for the same CKRecord creation when a CKQuerySubscription has been created for them. I have tried to diagnose but don't see anyway I could be generating 10+ duplicates for a single record creation in the public database (also have users, in production, experiencing this same issue). Note: The CKQuerySubscription is created for every new user when they enable notifications and looks only at one when a CKRecord is being created. It also doesn't set a specific subscription ID (not sure if this is the issue or not). Thanks, Camden
Replies
2
Boosts
0
Views
1.4k
Activity
Jan ’22
CloudKit Dashboard - Cannot add or update asset items
I've been using CK Dashboard for several years to maintain updates that propagate to user apps. Recently I have had a problem adding or updating any record that has an asset in it. Adding the asset seems to go fine until I hit the "Save" button. Then it comes back with "! Load Failed". This happens every time. I'm using the latest build of Safari in Big Sur 11.6.1. I have searched preferences to see if somehow Safari does not have access permissions, but it does not matter what directory the uploaded file resides in - it fails every time. I can download a record with an asset, but if I change the asset and save, it fails. Saving from a live app in iOS continues to work fine. This seems to be some sort of permission issue, but I am the only user and I have all permissions enabled. Logging out/back in has no effect. This problem exists in both my M1 iMac and M1 MacBook Air (Monterey). Looking for anyone else having the problem before filing a bug.
Replies
4
Boosts
0
Views
1.5k
Activity
Jan ’22
Upload operation complete but not found by CKQuery few minutes
My app is backing up / restoring data in the app using CloudKit. I've been using the same code since early 2020, and I've had the problem since a few months ago (around September 2021). The problem is as below. eg) If 30 pieces of data are uploaded using OperationQueue, the upload is completed within a few seconds. No error occurred in operation.perRecordCompletionBlock. Check the number of requested data using the CloudKit console log. However, if i use CKQuery to check the data, 1 or 2 pieces of data are missing for several minutes (approximately 10 minutes). This is the same whether you send a Query from the CloudKit console or use CKQuery using swift code. And after a few minutes, all the data is uploaded. Now, some users are writing this problem in reviews, but I have no way to solve it.
Replies
1
Boosts
0
Views
645
Activity
Jan ’22
CloudKit -No Containers
When I try to access the cloud database it says No Containers I have everything set up correctly. Everything in the pics below with the gray outline has the same exact identifier iCloud.com.myCo.myApp Entitlements: Xcode: developer.apple: I did a deep clean, closed Xcode, reopened it, deep clean again, build. Still No Containers. This is a paid account.
Replies
1
Boosts
0
Views
1.7k
Activity
Jan ’22