User-Generated Files in Documents Directory Deleted After App Restart on iOS 18.2 (iPhone 11)

Hello,

I am encountering an issue with user-generated files stored in the Documents directory on an iPhone 11 running iOS 18.2.

The problem occurs as follows:

1.The app generates and saves files in the Documents directory using FileManager. 2.These files are successfully saved and remain accessible while the app is running. 3.After restarting the app, the files appear to have been deleted from the Documents directory.

I have confirmed that:

1.The files are being saved to the correct location (Documents directory) and can be accessed during the current app session and from iExplorer. 2.The app is not explicitly deleting these files during shutdown or restart. 3.This behavior is consistent across multiple app restarts.

User-Generated Files in Documents Directory Deleted After App Restart on iOS 18.2 (iPhone 11)
 
 
Q