Access Documents directory contents in files app in ios 15

In my app, I want to expose the documents directory of the app in files app. I have set UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace to YES in info.plist. This works perfectly while using iOS 14 simulator. But the same does not work on iOS 15 simulator. What is the fix for this issue?

This works perfectly while using iOS 14 simulator. But the same does not work on iOS 15 simulator.

Is this just the simulator? Or does it also happen on a real device?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Same question. I also found this: When adding the above named lines UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace in the .plist the app is no longer archived as iOS but as MacOS. Is this intended?

the app is no longer archived as iOS but as MacOS.

That’s not my experience. Here’s what I did:

  1. Using Xcode 13.4, I created a new project from the iOS > App template.

  2. I chose Product > Archive.

  3. This reveals the archive in the Xcode organiser. I selected and checked the type. It shows iOS App Archive.

  4. Back in the project, I selected the Info tab for the app target in the project editor.

  5. I add UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace, both with a value of true.

  6. In the General tab I bumped the Build number.

  7. I repeated steps 2 and 3. The archive type is still iOS App Archive.

I recommend that you repeat these steps to make sure that Xcode is behaving in general. You can then compare your main project with this test project to find out what’s causing the problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Access Documents directory contents in files app in ios 15
 
 
Q