Application's iCloud drive folder doesn't show in macOS

I have an app that needs to store video files in it's own container folder in iCloud Drive. I have tried suggestions from most forums and I still couldn't resolve this issue.

These are the things I did to setup a cloud container for my app -
  • Added iCloud capability. Selected 'iCloud Documents' for Services and selected the appropriate iCloud container that I had created through my developer account.

  • Added the following entry in Info.plist

Code Block
<key>NSUbiquitousContainers</key>
<dict>
<key>iCloud.com.TeamName.AppName</key>
<dict>
<key>NSUbiquitousContainerIsDocumentScopePublic</key>
<true/>
<key>NSUbiquitousContainerName</key>
<string>AppName</string>
<key>NSUbiquitousContainerSupportedFolderLevels</key>
<string>Any</string>
</dict>
</dict>

  • These are the values in the entitlement file

Code Block
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.TeamName.AppName</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
</array>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.com.TeamName.AppName</string>
</array>
  • Have tried with new bundle identifiers and cloud containers.

  • Have tried updating the Version and the Build value

The app folder is created at '/Users/{user}/Library/Mobile\ Documents/iCloud~com~TeamName~AppName/Documents' and I can see the files I've written to it.

I can find these files at iCloud -> Manage Storage -> AppName on my iPhone too.

Will 'NSUbiquitousContainerIsDocumentScopePublic' be accepted as true only when an app is released on the Appstore? Or it's just that I'm missing something here?

I ran into the same problem and searched the developer forums and stackoverflow, but still no solution

Technical Q&A QA1893: Updating the metadata of iCloud containers for iCloud Drive
https://developer.apple.com/library/archive/qa/qa1893/_index.html

Thanks for answering. Appreciate it. I have tried the steps in the document and still no changes. Were you able to solve it by following these steps?
I spent 2 days trying to find a solution to this problem, but no luck.
Currently ready to change plans, not ready to use iCloud Driver.

If you solve this problem, you can share it with.
There are so many questions like this on the forum, I have read every single Q&A post, I have tried all possible solutions, but the problem is still not solved
I have submitted a technical support request for this issue. Will post here if it's resolved.

Hi  sathish_28,

Have you solved your problem yet?

Application's iCloud drive folder doesn't show in macOS
 
 
Q