title: Don't Backup to iCloud but still rejected
body: <p>In my app i have to store Core Data Database and audio files, so i decoded to put them in Documents directory.
  To prevent them from backing up, when i first launch the app, i put the <strong>Don't BackUp flag like this</strong></p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
   [self addSkipBackupAttributeToItemAtURL:[self applicationDocumentsDirectory]];
  }
      - (NSURL *)applicationDocumentsDirectory
  {
      return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
  }
  - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
  {
    if (&amp;NSURLIsExcludedFromBackupKey == nil) { // iOS &lt;= 5.0.1
      const char* filePath = [[URL path] fileSystemRepresentation];
  
      const char* attrName = "com.apple.MobileBackup";
      u_int8_t attrValue = 1;
  
      int result = setxattr(filePath, attrName, &amp;attrValue, sizeof(attrValue), 0, 0);
      return result == 0;
    } else { // iOS &gt;= 5.1
      return [URL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil];
    }
  }
  </code></pre>
  
  <p>But it seems like it doesn't work - i still get rejected:</p>
  
  <blockquote>
    <p>We found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.</p>
    
    <p>In particular, we found that on launch and/or content download, your
    app stores 3.6 MB. To check how much data your app is storing:</p>
    
    <ul>
    <li>Install and launch your app</li>
    <li>Go to Settings > iCloud > Storage &amp; Backup > Manage Storage </li>
    <li>If necessary, tap "Show all apps" </li>
    <li>Check your app's storage</li>
    </ul>
  </blockquote>
  
  <p>And the other problem is that i just can't check that - i don't see my app in </p>
  
  <blockquote>
    <p>Settings > iCloud > Storage &amp; Backup > Manage Storage</p>
  </blockquote>
  
  <p>Maybe the problem is only with 5.0 that i kind of not think about here?</p>