CKError 10/2007 "Invalid bundle ID for container" although the container is assigned to the App ID

Every CloudKit request from my app fails with CKError "Permission Failure" (10/2007), server message "Invalid bundle ID for container".

Setup: SwiftData / NSPersistentCloudKitContainer, private database, Development environment, explicit container identifier (not the default container).

What I verified, following TN3164:

  • The App ID has iCloud with CloudKit enabled and exactly this container assigned.
  • The container is visible in CloudKit Console under the same team.
  • The Xcode-managed provisioning profiles contain the container in both the production and the development container identifier lists.
  • The signed entitlements of the app match: application-identifier, team identifier, container identifiers, environment Development, CloudKit service, get-task-allow.
  • The error occurs on two different devices and in two independent code paths: initializeCloudKitSchema and the normal SwiftData store.
  • It fails while setting up the record zone com.apple.coredata.cloudkit.zone.

Per TN3164 this means the association is not synchronized to the CloudKit server. The app is already on the App Store (the current version does not use CloudKit yet) and the next version must keep this container identifier, so switching to a new container is not an option.

I have reported this through Feedback Assistant and to Developer Support. I can provide the App ID, container identifier and the failing request IDs privately to anyone from Apple who needs them.

Is there anything else I can check on my side, or does this need a manual fix on the CloudKit server?

CKError 10/2007 "Invalid bundle ID for container" although the container is assigned to the App ID
 
 
Q