iPhoneAppでシンボリックリンクを使用しています。iPhoneアプリのアップデート。 "createSymbolicLinkAtPath"がリリースされましたか?
NSString* js_path = [[NSBundle mainBundle] pathForResource:@"js" ofType:nil];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
if (js_path != nil) {
NSFileManager *fm = [NSFileManager defaultManager];
NSString* move_js_path = [NSString stringWithFormat:@"%@/js", [paths objectAtIndex:0]];
NSError *error;
if ([fm createSymbolicLinkAtPath:move_js_path withDestinationPath:js_path error:&error]) {
} else {}
}
アプリケーションプログラムを更新しました。後でファイルを読むことが不可能になります。
ただし、アプリケーションプログラムを一度削除した後にファイルを再インストールすると、ファイルを読み込むことができました。
このコードに問題はありますか?