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
Fbsopenapplicationerrordomain Code =4 Error
Swift Framework: Umbrella Header '[...].H' Not Found
Avcapturevideopreviewlayer Orientation - Need Landscape
How to Calculate the Age Based on Nsdate
How to Change Uibutton Title Color
How to Set Image in Circle in Swift
Stretch Background Image for Uibutton
How to Animate Tab Bar Tab Switch with a Crossdissolve Slide Transition
The Identity Used to Sign the Executable Is No Longer Valid
How to Create a Release Build in Xcode
Xcode 4.2 Jumps to Main.M Every Time After Stopping Simulator
Tableview:Numberofrowsinsection:]: Unrecognized Selector Sent to Instance
Rotate a View for 360 Degrees Indefinitely in Swift
Uiview Animation Jumps at Beginning
Passing Data from App Delegate to View Controller
Making a Drop Down List Using Swift
Error: Module File's Minimum Deployment Target Is iOS8.3 V8.3