アプリケーションが原因理由理由を「バックアップしない」ため、Apple開発者によるiPhoneアプリケーションの拒否。今私は何をしますか?
私はこの問題を取り除くために一つのことを試してみました「バックアップしない」に拒否します。 Appleテクニカルサポートの小さなコードを1つ手に入れ、iOSのガイドラインに従ってこのコードをプロジェクトで使用しました。まず、私はその後、以下の機能を貼り付け、私のappdelegate.m
一部に
#import<sys/xattr.h>
をヘッダファイルを追加しました。
- (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;
}
起動が完了すると、私のappdelegateに上記の関数を呼び出します。
- (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:@"<Application_Home>/Library/Caches"]];
[self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:@"<Application_Home>/tmp"]];
[self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:@"<Application_Home>/Library/Private Documents"]];
}
今、私はこのOKかどうかを知りたいです。 iTunes Connectに自分のアプリケーションを再アップロードすることはできますか?
私はIOSで新しくなったときにこの質問をしました。今私はすでにこれについての答えを与えている...しかし、まだ投票を得て.... :( – TheTiger