Before iCloud my App stored data in the cloud via the ubiquity container. After iCloud the App used the same APIs to query metadata, store and fetch files, etc. The App icon/folder also appeared in iCloud Drive when viewed via Safari. And while the App still functions nominally - it can list iCloud files, query their metadata, and fetch and store to iCloud - there is no longer an App folder on iCloud Drive. I do not know when this might have happened, so am wondering if there was a change I might have missed, perhaps a new info.plist key/value pair or Xcode provision over and beyond the settings I've had for years. Thanks.
My app used to be shown in iCloud Drive Folder but now is not.
Not sure what your settings used to be but to appear in the Finder for iCloud Drive, you need the NSUbiquitousContainers plist key. Google that for the various values required.
Hmm. I see the folder and it's contents in the Finder, but not Safari - it's the Safari view that has changed and that I am wondering about. Safari shows Keynote, Numbers, Pages and Textedit. Finder shows those 4 Apps (and Automator) plus my App.
I have these Xcode ubiquity plist entries:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>iCloud.com.bigcatos.Krypton</key>
<dict>
<key>NSUbiquitousContainerIsDocumentScopePublic</key>
<true/>
<key>NSUbiquitousContainerName</key>
<string>Krypton</string>
<key>NSUbiquitousContainerSupportedFolderLevels</key>
<string>Any</string>
</dict>
</dict>
</plist>
Finder / ls shows me this:
file:///Users/lusol/Library/Mobile%20Documents/com~apple~Numbers/Documents/
file:///Users/lusol/Library/Mobile%20Documents/com~apple~TextEdit/Documents/
file:///Users/lusol/Library/Mobile%20Documents/iCloud~com~bigcatos~Krypton/Documents/
file:///Users/lusol/Library/Mobile%20Documents/com~apple~Pages/Documents/
file:///Users/lusol/Library/Mobile%20Documents/com~apple~Automator/Documents/
file:///Users/lusol/Library/Mobile%20Documents/com~apple~Keynote/Documents/
It looks to me like your Info.plist entries don't correspond exactly to what would be required: in particular, the `NSUbiquitousContainers` dictionary is missing. Have a look here, under the subheading, 'Document Provider Extensions.'
Furthermore, I hope you're aware that for Finder to 'notice' any updates to the `NSUbiquitousContainers` key and its children, you must bump the version/build number.
R
It's uncleasr why (or how) I posted that abbreviated plist, but here is the real thing, including the NSUbiquitousContainers key. I've off and on over almost an entire year revisited this issue and still haven't resolved it. On iOS my App and Apple's iCloud Drive App can see all my container files. On macOS my App and the Finder can see all those same files. But a browser view of my iCloud Drive fails to show the files ... not even the main folder shows up. Most odd!
<key>NSUbiquitousContainers</key>
<dict>
<key>iCloud.com.bigcatos.Krypton</key>
<dict>
<key>NSUbiquitousContainerIsDocumentScopePublic</key>
<true/>
<key>NSUbiquitousContainerName</key>
<string>Krypton</string>
<key>NSUbiquitousContainerSupportedFolderLevels</key>
<string>Any</string>
</dict>
</dict>
Well, now, look at that, my App's iCloud Drive container has suddenly become visible at icloud.com, sometime between my last post on 6 Jan and now! I can only make two guesses as to what happened:
1) A new version of the iOS App was approved on 24 Jan, and a new version of the macOS App was approved on 23 Jan. But I've had a few previous versions and they never managed to unstick the widget.
2) What I have been doing differenly is trying to determine why the documents saved by the macOS version have recently been adorned with plain white, generic, App icons, rather than the proper App icon as in the past. So I have been trying "things" posted on the web concerning cleaning icon caches, etc. It's unclear how this can be in any way related.
Or something else happened ....