我在startAccessingSecurityScopedResource之后调用coordinateAccessWithIntents。在byAccessor块中,我应该在原始URL或可能更新的URL上调用stopAccessingSecurityScopedResource吗?
例如......
NSFileAccessIntent *readingIntent = [NSFileAccessIntent readingIntentWithURL:myURL options:0];
[fileCoordinator coordinateAccessWithIntents:@[readingIntent] queue:queue byAccessor:^(NSError * _Nullable error) {
// stop the original url?
[myURL stopAccessingSecurityScopedResource];
// or the potentially updated url?
[readingIntent.URL stopAccessingSecurityScopedResource];
}];
我应该在哪个URL上调用stopAccessingSecurityScopedResource?