[英]iOS app rejected: Apps must follow the iOS Data Storage Guidelines or they will be rejected
My application got rejected for the 2nd time . 我的申请第二次被拒绝了 。
When my app got rejected for the 1st time, I first checked all these links and more: 当我的应用程序第一次被拒绝时,我首先检查了所有这些链接以及更多:
Then, I added a function that marks all my /Documents
files with "do not back up" attribute NSURLIsExcludedFromBackupKey
. 然后,我添加了一个函数,用“不备份”属性
NSURLIsExcludedFromBackupKey
标记所有我的/Documents
文件。 But my application got rejected again. 但我的申请再次遭到拒绝。 Here is my code:
这是我的代码:
func excludeUrls(path: String) {
let urlToExclude = NSURL.fileURLWithPath(path)
do {
try urlToExclude.setResourceValue(NSNumber(bool: true), forKey: NSURLIsExcludedFromBackupKey)
print("\(path) excluded.")
} catch {
print("failed to set resource value")
}
}
More informations: 更多信息:
Supporting Files
, these images are not backed up. Supporting Files
嵌入了大约320张静态照片,这些图像没有备份。 Google/SignIn
, Google/CloudMessaging
, Alamofire
and SQLite.swift
pods Google/SignIn
, Google/CloudMessaging
, Alamofire
和SQLite.swift
pod Go to Settings > iCloud > Storage & Backup > Manage Storage
转至设置> iCloud>存储和备份>管理存储
According to the comment you posted, Apple asserts that your app is actually backing up about 6 megabytes of data on launch. 根据您发布的评论,Apple声称您的应用实际上在启动时备份了大约6兆字节的数据。
That's the key. 这是关键。 Try to reproduce and isolate that behavior.
尝试重现并隔离该行为。 You may be able to use instruments to and a careful eye to figure this out at a lower level, if everything seems to add up otherwise.
如果一切似乎都加起来,你或许可以使用乐器并仔细观察它在较低的水平。
The only other thing you can do is ask them to contact you and talk it through with them. 你唯一能做的就是让他们联系你并与他们交谈。
Hopefuly, Apple Review Team finished by accepting my application. Hopefuly,Apple Review Team完成了接受我的申请。 Here is what I did:
这是我做的:
1 - I moved the generated database to the /Library/Caches
1 - 我将生成的数据库移动到
/Library/Caches
2 - I added an ImageLoader class to optimise the way i'm loading and using images inside the app, specially, there is a lot of images to handle. 2 - 我添加了一个ImageLoader类来优化我在应用程序中加载和使用图像的方式,特别是,有很多图像需要处理。 So, best way is to use cache: check this class
所以,最好的方法是使用缓存: 检查这个类
3 - The most important thing that I did, after seeing that my app does not store a lot of KB in iCloud, is that I appealed the rejection and I gave a lot of description and details and even some screenshots. 3 - 在看到我的应用程序没有在iCloud中存储大量KB之后,我做过的最重要的事情就是我对拒绝提出了上诉,我给出了很多描述和细节,甚至是一些截图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.