I face this issue only on macOS 26 and only on the Intel architecture.
I'm unable to download files from a file provider's folder when I make them read-only.
STEPS TO REPRODUCE
- Download the sample from https://developer.apple.com/documentation/fileprovider/synchronizing-files-using-file-provider-extensions?language=objc
- Follow the steps on the page to configure the project.
- Build the project.
- Run it.
- Add a domain.
- Open the domain's folder in the Finder.
- Move a file to the domain's folder.
- Right-click on the file in the domain's folder and select "Remove Download".
- Close the Finder's window with the domain's folder and kill all the "Provider" processes to get rid of running instances of the extension.
- Change Item's capabilities in Item.swift to make the items read-only:
var result: NSFileProviderItemCapabilities = [
.allowsContentEnumerating,
.allowsReading
]
- Rebuild the project and run it.
- Open the domain's folder and try to drag and drop the file from the extension's folder to, let's say, the Desktop folder.
EXPECTED RESULT
The file is copied
ACTUAL RESULT
A dialog pops up with text "The file “filename” cannot be downloaded. Do you want to skip it?" Stop/Skip