iOS正在从我的应用程序向iCloud备份28.0KB的一些未知数据

iOS正在从我的应用程序向iCloud备份28.0KB的一些未知数据,第1张

概述我的应用程序因未将“不备份”属性设置为我使用的两个内部文件(并存储在/ Documents中)而被拒绝.我已经设置了属性,它不再备份这些文件(~11.5MB). 它仍在备份28kb的一些数据.我从/ Documents文件夹中删除了所有数据并将它们放到/ tmp中,以确保可以备份Documents中的任何内容.在更改后,我验证/ Documents对我的应用程序是空的,然而iCloud设法找到28 我的应用程序因未将“不备份”属性设置为我使用的两个内部文件(并存储在/ documents中)而被拒绝.我已经设置了属性,它不再备份这些文件(~11.5MB).

它仍在备份28kb的一些数据.我从/ documents文件夹中删除了所有数据并将它们放到/ tmp中,以确保可以备份documents中的任何内容.在更改后,我验证/ documents对我的应用程序是空的,然而iCloud设法找到28kb的数据进行备份.

如何准确确定此数据是为了防止备份?我不想再被拒绝,所以我想验证该应用程序在iCloud上占用0kb的备份存储空间.

谢谢

这是拒绝通知:

2.23

We found that your app does not follow the iOS Data Storage
GuIDelines,which is required per the App Store RevIEw GuIDelines.

In particular,we found that on launch,your app stores 11.53 MB. To
check how much data your app is storing:

Install and launch your app Go to Settings > iCloud > Storage & Backup > Manage Storage If necessary,tap “Show all apps” Check your app’s storage

The iOS Data Storage GuIDelines indicate that only content that the
user creates using your app,e.g.,documents,new files,edits,etc.,
may be stored in the /documents directory – and 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.

Data that can be recreated but must persist for proper functioning of
your app – or because customers expect it to be available for offline
use – should be marked with the “do not back up” attribute. For NSURL
objects,add the NSURlisExcludedFromBackupKey attribute to prevent the
corresponding file from being backed up. For CFURLRef objects,use the
corresponding kcfURlisExcludedFromBackupKey attribute.

For more information,please see Technical Q&A 1719: How do I prevent
files from being backed up to iCloud and iTunes?.

It is necessary to revise your app to meet the requirements of the iOS
Data Storage GuIDelines. For discrete code-level questions,you may
wish to consult with Apple Developer Technical Support. Please be sure
to prepare any symbolicated crash logs,screenshots,or steps to
reproduce the issues for when the DTS engineer follows up. For
information on how to symbolicate and read a crash log,please see
Tech Note TN2151 Understanding and Analyzing iPhone OS Application
Crash Reports.

解决方法 事实证明,预编译的Google Analytics库在/ library目录中保留了一个名为Googleanalytics.sql的小型数据库.一旦我发现了这个,我就为该文件设置了“不备份”的标志并且它有效:我获得0kb备份. 总结

以上是内存溢出为你收集整理的iOS正在从我的应用程序向iCloud备份28.0KB的一些未知数据全部内容,希望文章能够帮你解决iOS正在从我的应用程序向iCloud备份28.0KB的一些未知数据所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1064305.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存