简体   繁体   English

iOS:将资源(音频)文件包含到应用程序的应用程序文件夹中,而不是添加到包中

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

Currently my resource(audio) files is 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 app while submitting the build to AppStore and not in the bundle.请让我知道如何将音频文件直接包含到应用程序的应用程序文件夹中,同时将构建提交到 AppStore 而不是捆绑包中。 Thereby user can delete the files which are not of his interest and re-download from the cloud backup hosted on S3 if needed.因此,用户可以删除他不感兴趣的文件,并在需要时从托管在 S3 上的云备份中重新下载。

The only way to accomplish this is to NOT have the audio files included in the initial app install.完成此操作的唯一方法是不在初始应用安装中包含音频文件。

Instead, your app could download the audio files from a hosting service... either download them all on first launch, or download each file as-needed.相反,您的应用可以从托管服务下载音频文件……或者在首次启动时全部下载,或者根据需要下载每个文件。

You would then store the files on the device so they don't need to be downloaded again... and you could provide a UI to delete files the user no longer wants stored locally.然后,您可以将文件存储在设备上,这样就不需要再次下载它们……并且您可以提供一个 UI 来删除用户不再希望在本地存储的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何显示和加载iOS应用程序资源/资产文件夹中的音频文件? - how can I display and load audio files from iOS app resource/asset folder? iOS 11文件应用程序:如何包含应用程序包中的文件 - iOS 11 Files App: How to include files from app bundle 将文件打包放入iOS应用上的特定文件夹位置 - Put files in bundle into specific folder locations on iOS app 如何在iOS捆绑包的文件夹层次结构中包括所有文件,但不包括文件夹本身? - How do I include all files within a folder hierarchy in an iOS bundle, but not include the folders themselves? ios-具有超过2GB大小的资源文件的企业应用程序 - ios - Enterprise app with more than resource files of size 2GB 访问iOS应用程序捆绑包中文件夹的内容 - Accessing contents of a folder in iOS application bundle 我可以在文件的文件夹而不是单个文件上使用iphoneSetDoNotBackupFile吗? - Can I use iphoneSetDoNotBackupFile on a folder of files rather than individual files? 如何将文件文件夹从IOS App捆绑资源复制到Documents Directory - How to copy a folder of files from IOS App bundle resources to Documents Directory iOS:与在应用程序外部播放相比,应用程序中使用的音频文件听起来更刺耳 - iOS: audio files used in app sound harsher than when played outside the app iOS应用程序包文件中的全文搜索 - Full text search in iOS application bundle files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM