My setup
- macOS Big Sur
- Xcode 12.5.1
With macOS sandboxing, I've enabled access to
- User selected file
- Download folder
- Picture folder
- Music folder
- Movie folder
all with Read/Write permissions.
However, when I use the official file_selector
and path_provider
. I still cannot reference any files and folders outside of the Downloads/Music/Movies/Pictures.
I always get
OS Error: Operation not permitted, errno = 1
whenever I tried to access a directory outside of those directories mentioned above.
Expectation
I expect that by giving User selected file
permission, I should be able to allow file_selector to access say user Documents/Desktop folder. Otherwise, how could the user have "selected" files if it requires separate permission from those predefined folders?
I read from native dev posts that one would need to call the native function NSOpenPanel
.
Can anyone let me know how? Is it that flutter does not support such User selected File feature?
Should I resort to the platform method channel? This sounds a bit crazy.