Created a branch new app from scratch with the appropriate CloudKit capability and a brand new container. Any attempt to fetch or save a record to the private database results in the error message "Invalid bundle ID for container". I am using the default container.
Previous posts about this issue have suggested "disassosciating" and "reassosciating" my apps container by toggling it's cloud kit capability in it's identifier settings via the developer portal. This does not work.
Previous posts have also suggested that this could be a permissions issue, so I went into the database schema and gave as many permissions as I could for each of the default roles. This also does not work.
This is only a problem for the app. The database is fully editable from the dashboard.
I tried creating new apps and new containers from scratch, each with different bundle and container IDs and they all exhibit this behavior.
I've created half a dozen or so working CloudKit applications before and this is the first time I've seen this. Can anyone from apple let me know: what exactly does this error indicate? in what way is my apps bundle ID invalid?
I am assuming that the error message here is not actually indicating what the real problem is. What is the real problem?
I can't even begin to express my frustration with these API's. They break so frequently, are poorly documented, the error messages are misleading, and half the time they seem to magically "fix themeselves" after an XCode or OSX update with no explanation.