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:
- iOS App Rejection due to 2.23 - iOS Data Storage Guidelines
- Rejection: "2.23: Apps must follow the iOS Data Storage Guidelines", We do not have any data saved in documents folder
- 2.23: Apps must follow the iOS Data Storage Guidelines or they will be rejected
- http://samwize.com/2013/06/28/ios-data-storage-guidelines-and-how-to-resolve-itunes-connect-reject/
- iOS: Do not back up attribute?
Then, I added a function that marks all my /Documents
files with "do not back up" attribute NSURLIsExcludedFromBackupKey
. 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:
- I have about 320 static photo embedded in
Supporting Files
, these images are not backed up. - I use
Google/SignIn
,Google/CloudMessaging
,Alamofire
andSQLite.swift
pods - I have 1 sqlite database that I save in /Library/Cache folder, which is not backed up of course.
- When I check iCloud storage space for my application:
Go to Settings > iCloud > Storage & Backup > Manage Storage