Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudKit errors "Bad Container" (5/1014); "Couldn't get container configuration from the server for container "iCloud.com.abc.def"">

Tags:

ios

cloudkit

I am New to cloud Kit can someone Help me with Error , as i am trying to implement add a record in my Public Database and Getting this Error .

"Bad Container" (5/1014); "Couldn't get container configuration from the server for container "iCloud.com.abc.def""

THANKS .

like image 577
Alex A Avatar asked Mar 16 '15 14:03

Alex A


3 Answers

Is that the bundle ID of your application? Xcode creates a container on the server with the bundle ID of the current application. Double-check your application's bundle ID then follow the instructions in the CloudKit Quick Start to set up that container.

like image 114
farktronix Avatar answered Nov 17 '22 14:11

farktronix


Please make sure that you've initialised the container properly. You can double-check with iCloud Dashboard if it has your container in the containers list.

The container is initialised with CKContainer.defaultContainer() call or a more specific CKContainer(identifier: String) initialiser. Bear in mind that CloudKit container ID is usually in the form iCloud.<bundleID>, where <bundleID> is the bundle ID of your app. So the root of the problem might be that you tried to share a container between different apps but forgot to add iCloud. prefix.

like image 7
Max Desiatov Avatar answered Nov 17 '22 14:11

Max Desiatov


This error can also occur when you add a CKOperation to a custom OperationQueue without defining the database property of the operation.

like image 1
Ely Avatar answered Nov 17 '22 14:11

Ely