mswlogo appears correct about all of this.
mswlogo's very specific examples helped me verify everything
What I think was not working in my case that the folder I created to to ensure the container had content in it did not match the name I I set the NSUbiquitousContainerName property in Info.plist to. After correcting that the folder appeared on my iCloud drive, finally. Took me 3-4 hours from knowing nothing to getting it working. Hopefully this helps someone else.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: