特定ファイル、ディレクトリをバックアップ対象外とする方法 エントリアプリのiOS5のアップデート対応でも記述した通り、iOS5からはDLファイル等の大容量ファイルをバックアップ対象としてはいけないポリシーとなりましたが、それを受けてかiOS5.0.1よりDocumentsディレクトリ以下であっても特定のディレクトリやファイルをバックアップ対象外とすることが可能になりました。 具体的には、以下のようなコードを記述し、バックアップ対象外としたいディレクトリに対してコールすると良いです。 バックアップ対象外とするメソッド(qa1719より抜粋) #include <sys/xattr.h> - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { const char* filePath = [[URL path] fileSystemRe