Starting with macOS 10.15 I have noticed that obtaining
NSURLLocalizedNameKey, NSURLTagNamesKey, and even calling getxattr(),
can cause a significant delay.
The code below, which gets NSURLLocalizedNameKey for 3 folders, takes
1.9 seconds to execute on my system.
It appears though that it
Regardless of whatever workaround you find, I would second Rob’s suggestion to
go ahead and file a bug with a sysdiagnose and/or spindump along with a sample
app that reproduces it. This isn’t expected behavior, and the teams at Apple
are still working and would be very interested in seeing
this may be difficult for other to repro
i have discovered it may have to do with permissions / entitlements that have
been granted the app by the user, and that resetting all perms to default will
"fix" the problem
in the terminal, do this:
> tccutil reset All
i expect that after that, your
>> I think you are right about this being a permission / “sandbox” issue,
>> because the 3 folders in question are all folders that macOS 10.15 now
>> require special permission to read (even though in my case, I just request
>> their display name).
Yes, this is because of iCloud. Log
On 20 Apr 2020, at 0:37, Rob Petrovec wrote:
>> I think you are right about this being a permission / “sandbox”
issue, because the 3 folders in question are all folders that macOS
10.15 now require special permission to read (even though in my case,
I just request their display name).
Yes,
I assume you have iCloud enabled. If so, these three folders are ’special’.
Try logging out of iCloud & rebooting and see if the problem persists.
I would also recommend filing a bug with Apple and include a sysdiagnose taken
while the problem was reproducing (sudo sysdiagnose). Or at least
On 19 Apr 2020, at 22:54, David M. Cotter wrote:
i have discovered it may have to do with permissions / entitlements
that have been granted the app by the user, and that resetting all
perms to default will "fix" the problem
I think you are right about this being a permission / “sandbox”