[EDIT] If anybody is interested, this is the simplest way to reproduce the issue using the Xcode template: (1) Create a new project in Xcode 13.0. (2) Choose iOS -> Document App. (3) Choose Interface: Storyboard and create the project (for simplicity let’s use “MyApp” as Product Name). (4) Build and install MyApp on a device running iOS 15.0 or 15.0.1 with iCloud Drive enabled. (5) Leave the default setting for Document Storage (i.e. iCloud Drive) in Settings -> MyApp. (6) Create a text file with any content and save it with extension “exampletext” (i.e. the imported type identifier used by the app template - let’s call the file “test.exampletext”). (7) Send an email to an inbox accessible from the device with test.exampletext as attachment. (8) Open Mail on the device, long-press on test.exampletext and share it to MyApp. If a folder “MyApp” exists in iCloud Drive, it will be renamed to “MyApp 2”; a new “MyApp” folder will be created and test.exampletext will be saved in the new folder. Sharing again test.exampletext from the mail to MyApp will create another “MyApp” folder and rename the previous one; an arbitrary number of “MyApp n” folders can be created in this way, each including one copy of the document. I submitted a bug report using the Feedback Assistant, hopefully it will be fixed...
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: