Application iCloud drive folder is not visible on macOS is some cases

Originator:steipete
Number:rdar://32400158 Date Originated:25-May-2017 02:56 PM
Status:Open Resolved:
Product:iCloud Product Version:iOS 10.3.2
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
Our iOS Application (PDF Viewer, http://pdfviewer.io) recently added iCloud Drive support. We set up the `NSUbiquitousContainers` property adding the `NSUbiquitousContainerIsDocumentScopePublic` option. We also configured our code to write an empty file into the container during initialization. Despite this, we are getting occasional reports from our users, who can't see the PDF Viewer folder listed in their iCloud Drive folder in Finder on macOS. The folder is visible on other iOS devices, but not on macOS. For the vast majority of our users this works without issues. 

Steps to Reproduce:
Unknown. We could not reproduce it on any of our machines. 

Expected Results:
The application specific iCloud folder would always be visible in the iCloud Drive folder.  

Actual Results:
In some cases the application specific iCloud folder is only present in ~/Library/Mobile Documents/, but not also visible in the iCloud Drive folder in Finder. 

Version:
iOS 10.3.2

Notes:
We are suggesting that affected users try copying files into the iCloud drive folder on other devices and have put up a FAQ with troubleshooting tips (http://faq.pdfviewer.io/pdf-viewer-for-ios/troubleshooting-and-feedback/troubleshooting-icloud-drive), however that does not seem to resolve the issue for some users. They claim to see the documents in `~/Library/Mobile Documents/iCloud~com~pspdfkit~viewer/Documents` and that directory also reflects document changes, but it is not visible in the iCloud Drive folder. We also got reports that some affected users are seeing other third party app folders in `~/Library/Mobile Documents/` but not in their iCloud drive folder.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!