Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7053921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:33:48+00:00 2026-05-28T03:33:48+00:00

My iphone app has got rejected recently & with below mentioned reason : We

  • 0

My iphone app has got rejected recently & with below mentioned reason :

“We found that your app does not follow the iOS Data Storage Guidelines, which is not in compliance with the App Store Review Guidelines.”

For this app I was storing database (sqlite file) in /Documents/ directory for iOS 5.0.1 & above & for iOS 5.0 & below versions I used Library/Cache directory.

For other data like PDF & artwork images which I was downloading from server I followed the same approach as above like:
iOS 5.0.1 & Later: Saved these data into /Documents/ directory
iOS 5.0 & earlier versions: Saved data to Library/Cache directory.

Is this approach correct?

As per Apple guideline:
Important: The new “do not back up” attribute will only be used by iOS 5.0.1 or later. On iOS 5.0 and earlier, applications will need to store their data in /Library/Caches to avoid having it backed up. Since this attribute is ignored on older systems, you will need to insure your app complies with the iOS Data Storage Guidelines on all versions of iOS that your application supports.

Also very confused about that “do not back up” attribute assignment for the data stored for iOS 5.0.1 & later. For which files i need to assign this flag ? Can i use it for database?.

Need to get rid of these rejection as it has happened twice. Please provide some guidance for storing the data for my app. Thanks in advance. Looking forward for positive response.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:33:49+00:00Added an answer on May 28, 2026 at 3:33 am

    Check https://developer.apple.com/icloud/documentation/data-storage/

    specifically:

    Use this attribute with data that can be recreated but needs to
    persist even in low storage situations for proper functioning of your
    app or because customers expect it to be available during offline use.
    This attribute works on marked files regardless of what directory they
    are in, including the Documents directory.

    Store the SQLite db in the caches folder and set the donotbackup flag, which will stop the file being deleted by the cache clean system

    - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
    {
        const char* filePath = [[URL path] fileSystemRepresentation];
    
        const char* attrName = "com.apple.MobileBackup";
        u_int8_t attrValue = 1;
    
        int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
        return result == 0;
    }
    

    I use a database in my app and store it in the cache folder (with the above flag set) and just got approved no problem.

    In addition you can store your data in a subfolder of the documents directory, which I believe won’t get backed up, but will persist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

every iPhone and iPod Touch has got the Apple Addresses App ... when you
I have a new iPhone app that has the following (and only the following)
I've developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with
I'm making an iPhone app that has information about different video games. How can
I am making a iPhone app that has two different targets. They use the
I'm developing an iPhone app that has a network component. I'm developing the app
I've got an iPhone app that runs on the device. Now I need to
I submitted an iPhone app to the store that got approved, but some things
I'm writing an iPhone app that (like most apps) supports auto-rotation: You rotate your
I have a web app, that also has an iPhone and Android app using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.