Oh, I forgot to include what I found.
My database object, the CKDatabase, is nil!!
So now, I'm tracking out why.
Ah, here's this issue.
(lldb) po __sharedManager.bubingaContainer
<CKContainer: 0x174164bc0; containerID=<CKContainerID: 0x174028b00; containerIdentifier=iCloud.com.rschluet.bubinga, containerEnvironment="Sandbox">>
I changed the environment to Production on the dashboard. I wonder how to do the same in the app. Time for some research.
Changing the environment on the Dashboard doesn't have any impact on your application. That just controls what environment you're looking at in the Dashboard.
What environment your app is working with is controlled by the setting of the com.apple.developer.icloud-container-environment entitlement. Are you sure that you're initializing that self.bubingaDatabase property before trying to use it? Is that a strong property?