拡張属性 "do not backkup" iOS5.0.1 よりファイルに 拡張属性 "do not backup" を付与することで特定のファイルを iCloud/iTunesバックアップの対象外にできる。以下は Technical Q&A からの転載。 #include <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, s
![Cocoaの日々: [Info] 特定のファイルをiCloudバックアップ対象外にする](https://cdn-ak-scissors.b.st-hatena.com/image/square/c0f7e8b2bcc0ec5489a26e1cb28cb8de6ba0c97e/height=288;version=1;width=512/http%3A%2F%2F2.bp.blogspot.com%2F-Wok6ix3isgc%2FTr4LqNnBdZI%2FAAAAAAAAGjc%2FJ7Q6bZufqyI%2Fs400%2F111112-0003-29%252525.png)