Why My App Is Not Shown in Icloud Drive Folder

App not recreating iCloud Drive folder

Try updating the bundle number and version in the info plist, an increase in these values are needed for the icloud additions to take effect.

Why is my iCloud Drive AppFolder visible on MacOS, but disabled in iCloud Drive App on iOS?

After clarification with the Apple Developer Technical Support, I was now able to solve the issue.

My app declares two exported UTI's (own backup files), so that the iCloud container will default to NOT being enabled (or grayed out), when other files than these UTI's are saved into that folder.
Our app is able to create PDF's and CSV's, but these file types were NOT declared as 'Document types' in the info.plist, because our app is not able to display them.

When adding the PDF and CSV document types to the info.plist, the iCloud container gets instantly visible in the iCloud Drive app.

For your reference, here is an extract of the info.plist:

...
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>Adobe PDF</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternative</string>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
</dict>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>CSV</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternative</string>
<key>LSItemContentTypes</key>
<array>
<string>public.comma-separated-values-text</string>
</array>
</dict>
</array>
...

How do I enable the iOS Files app to copy files into my app?

I wrote to Apple dev support and received a very helpful reply. The short answer is to bump the app's build number in order to get iCloud to notice the changes, and it's important that the build number be higher than any previous build number (in other words don't just change it to another value, change it to a higher value).



Related Topics



Leave a reply



Submit