CloudKit Permission Failure

Hi


I created an iPhone app and then made another target for an iPad app, and for it to use the same CloudKit container - I've checked the app ID on the developer panel and assigned the container to the new iPad app ID, but for some reason it's still telling me I've a 'Permission Failure':


"Permission Failure" (10/2007); server message = "com.company.ipadApp is not a valid Bundle ID for container iCloud.com.company.app"; uuid = xx; container ID =  "iCloud.com.company.app"


I've ensured that I've specified a custom container for the iPad app (which is the same one for the iPhone app) in the capabilities section, and I've also referred to the custom container in the code:


CKDatabase *publicDatabase = [[CKContainer containerWithIdentifier:@"iCloud.com.company.myapp"] publicCloudDatabase];


How do I get my iPad app to use the same container as the iPhone App?

Looks like it's working now without issues... Apple must've fixed whatever was wrong on their side!

This is four years old but surfacing to the top of the CloudKit tag with lots of new views. The same is happening again (October 2020) and was flagged down in this other posting https://developer.apple.com/forums/thread/664966
I can confirm — I've got the same error after I tried to create a new target (APP ID) and connect it to an existing container. October 2020
Confirming the same error. I've created multiple cloudkit applications before, I'm sure my settings are correct.
Yep, having this issue, very annoying - I hope it'll be fixed in the next few days as it seems to be an issue on Apple's side.

Meanwhile I've filed a radar: FB8877360, and also posted here: https://developer.apple.com/forums/thread/665280
CloudKit Permission Failure
 
 
Q