iOS: Include the resource(audio) files into the application folder of the app rather than adding into the bundle

Currently, my resource(audio) files are included in the bundle. Due to this user is unable to delete the unwanted audio files to save the disk space on his phone. Please let me know how can I directly include the audio files into the Applications folder of the app while submitting the build to AppStore and not in the bundle. Thereby the user can delete the files which are not of his interest and re-download from the cloud backup hosted on S3 if needed.

Replies

Application(s) folder? That is with macOS, not iOS...


> user can delete the files which are not of his interest and re-download from the cloud backup hosted on S3 if needed.


You may want to review this document: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html

Sounds like a good use case for On-Demand Resources. https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html


But I suppose the real answer is no, it is not possible to include files in your app bundle and have them end up somewhere not in the app bundle when installed. You will have to write some code to download them separately.