iPhoneシミュレータはディスク全体に書き込むことができるはずです。私のアプリは定期的にブートファイルのルートレベルにテストファイルをダンプします([NSData's writeToPath:@"/test.jpg" atomically:NO]
を使用)。
ドキュメントフォルダへのパスを正しく指定してもよろしいですか?パス内のチルダを展開する必要があります。私のアプリがドキュメントフォルダに物を入れるために使うコードは次のとおりです。それ以上の設定はないと思うよ!
brushesDir = [[@"~/Documents/BrushPacks/" stringByExpandingTildeInPath] retain];
// create brush packs folder if it does not exist
if (![[NSFileManager defaultManager] fileExistsAtPath: brushesDir])
[[NSFileManager defaultManager] createDirectoryAtPath:brushesDir withIntermediateDirectories:YES attributes:nil error:nil];
私はそれほど疑わしいです。私はこれを試してみましょう。ありがとう! – casademora