由于以下原因,我的应用被拒绝了:
Your app does not follow the iOS Data Storage Guidelines,as required
by the App Store Review Guidelines.
Your app backs up 4.0 MB of data to each user’s iCloud space on
launch. Please be sure to set the “Do not back up” attribute for all
data which is not generated or modified by the user. To check how much
data your app is storing:
- Install and launch your app
- Go to Settings > iCloud > Storage and Backup > Manage Storage
- If necessary,select “Show all apps”
- Check your app’s storage
The iOS Data Storage Guidelines indicate that only content that the
user creates using your app,(documents,new files,edits,etc.) may
be stored in the /Documents directory – and backed up to 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 appended 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.
根据我的理解,存储在/ documents文件夹中的所有内容都将存储在iCloud中,此文件夹应仅包含用户生成的数据.现在,我已将/ documents中的所有文件移动到缓存文件夹中.然而,当我使用设备测试应用程序时,仍然有大约28kb被发送到iCloud(根据Organizer,该设备的应用程序沙箱的/ documents文件夹中没有任何内容).我的项目不支持iCloud,所以当文档中没有任何内容时,我不明白发送了什么.
有没有办法检查发送到iCloud的确切内容?
此外,我的项目现在针对iOS 5.0.根据我在5.0中的理解,没有任何东西可以防止最终清除缓存文件夹.我应该只支持> = 5.0.1吗?
Now,I’ve moved all my files that were in /documents into the cache folder.
你错过了你引用的最后一段吗?您可以将数据标记为“不备份”,如该段中所述.因此,将文件保留在Documents目录中并对其进行适当标记.
Is there a way to check what exactly is being sent into iCloud?
将浏览器指向http://developer.icloud.com