在提交到应用商店之前添加了AddSkipBackupAttributeToItemAtPath(addSkipBackupAttributeToItemAtPath before commit to

编程入门 行业动态 更新时间:2024-10-28 14:35:52
在提交到应用商店之前添加了AddSkipBackupAttributeToItemAtPath(addSkipBackupAttributeToItemAtPath before commit to app store)

在将应用程序提交到App Store之前,我应该在项目中标记我的coreData文件"skip backUp Attribute"吗? 如果我不想备份任何文件,我必须跳过哪些文件夹? 感谢帮助。

Should I mark my coreData file "skip backUp Attribute" in my project before I commit my app to App Store? And if I don't want to backup any files,which folders I must to skip? Thanks for help.

最满意答案

iOS数据存储指南指出,只有用户使用您的应用创建的内容(例如文档,新文件,编辑等)才能由iCloud备份。

应用程序使用的临时文件只应存储在/ tmp目录中; 请记住在用户退出应用程序时删除存储在此位置的文件。

StackOverflow参考: iOS:不备份属性?

我的应用程序有许多文件需要永久存储在设备上,以便我的应用程序脱机正常运行。 但是,这些文件不包含用户数据,不需要备份。 如何防止它们被备份?

在iOS上,应用程序负责确保仅将用户数据而非应用程序数据备份到iCloud和iTunes。 必要的确切步骤因iOS版本而异,因此本QA将描述每个iOS版本的流程。 有关应该或不应备份哪些数据的详细信息。

更多参考文献:

如何防止备份文件?

性能提示

iOS - 将整个文档目录标记为不备份

The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., should be backed up by iCloud.

Temporary files used by your app should only be stored in the /tmp directory; please remember to delete the files stored in this location when the user exits the app.

StackOverflow Reference : iOS: Do not back up attribute?

My app has a number of files that need to be stored on the device permanently for my app to function properly offline. However, those files do not contain user data and don't need to be backed up. How can I prevent them from being backed up?

On iOS, apps are responsible for ensuring that only user data and not application data is backed up to iCloud and iTunes. The exact steps necessary vary between iOS version, so this QA will describe the process for each version of iOS. For more information on exactly what data should or should not be backed up.

More References :

How do I prevent files from being backed up?

Performance Tips

iOS - Flag entire Document directory as do not backup

更多推荐

本文发布于:2023-08-01 12:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1357890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:商店   AddSkipBackupAttributeToItemAtPath   addSkipBackupAttributeToItemAtPath   store   a

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!