Note that there are some explanatory texts on larger screens.

plurals
  1. PORejected iPhone application by Apple developers due to "do not back up" reason. What do I do now?
    primarykey
    data
    text
    <p><strong>Application rejected due to "do not back up" reason</strong></p> <p>I tried one thing to remove this issue. I got one small code from Apple technical support and used this code in my project according to iOS guideLines. First, I added a header file in my <code>appdelegate.m</code> part</p> <pre><code>#import&lt;sys/xattr.h&gt; </code></pre> <p>Then paste the below function.</p> <pre><code>- (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, &amp;attrValue, sizeof(attrValue), 0, 0); return result == 0; } </code></pre> <p>And call the above function to my appdelegate when it finishes launching.</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; [self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:@"&lt;Application_Home&gt;/Library/Caches"]]; [self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:@"&lt;Application_Home&gt;/tmp"]]; [self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:@"&lt;Application_Home&gt;/Library/Private Documents"]]; } </code></pre> <p>Now I just want to know if this OK or not. Can I reupload my application on <a href="http://en.wikipedia.org/wiki/ITunes_Connect" rel="noreferrer">iTunes Connect</a> or not?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload