I was experiencing a similar problem with my application. I was able to make this work by doing the following:
-
Add the
NSUbiquitousContainerssetting to myInfo.plistfile according to documentation here https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/FileProvider.html. Here is the relevant code:<dict> <!-- ... other top-level Info.plist settings ... --> <key>NSUbiquitousContainers</key> <dict> <key>iCloud.com.example.MyApp</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>Any</string> <key>NSUbiquitousContainerName</key> <string>MyApp</string> </dict> </dict> </dict> -
Important! I then changed the above
NSUbiquitousContainerSupportedFolderLevelsstring value fromAnytoOne<key>NSUbiquitousContainerSupportedFolderLevels</key> <string>One</string> -
Next, and last, I had to change
CFBundleVersionto a higher version. I also bumped theCFBundleShortVersionStringto a new version as well.
Built and ran and after that, the folder with my applications icon appeared properly in iCloud Drive! Hope this helps!